This workshop provides developers with hands on experience building cloud native Spring Boot applications with micro service architectures using Spring Boot, Spring Cloud Streams and Apache Kafka. Included are presentations, demos and hands on labs.
❗
|
Each new lab exercise builds upon the preceding lab, so please do not skip around the labs! |
-
Session 1: Introducing Spring Boot
-
Session 2: Spring-Kafka
-
Session 3: Spring Kafka Streams
To build the applications in this workshop, you’ll need a couple of things:
-
Your favorite IDE or editor (e.g., Eclipse or Spring Tool Suite, IntelliJ IDEA, NetBeans, Visual Studio, etc)
We’ll be pushing applications and creating services in Pivotal Cloud Foundry (PCF). This workshop uses Pivotal Web Services, an instance of PCF hosted by Pivotal.
-
Login or signup for a free Pivotal Web Services account
-
Click the Tools link and…
-
download and install the CLI matching your operating system
-
login to the CF CLI (
cf login -a api.run.pivotal.io
)
-
To follow along with the lab exercises, please clone this git repo on your local machine
$ git clone <Todo>
💡
|
This section shares some optional tips for configuring your IDE for an optimal experience during the workshop! |
- Exclude
java.awt.*
from auto-complete suggestions -
Preferences → Java → Appearance → Type Filters → Add… → java.awt.*
This way when you need to auto import something with
List
you don’t get the dialog box that asks if you wantjava.awt.List
when you really wantjava.util.List
- Configure Maven Auto Update
-
Preferences → Maven → [✔] Automatically update Maven projects configuration
Allows you to change a
pom.xml
and have the eclipse classpath automatically change without having to trigger the change manually. - Open pom.xml in XML view
-
Preferences → Maven → User Interface → [✔] Open XML Page in the POM editor by default
This will get you straight to the XML when you first open your
pom.xml
- Show line numbers
-
Preferences → General → Editors → Text Editors → Show Line Numbers
Very useful when collaborating and you need to explicitly state which line number you are referring to.
- Automatically refresh resources changed outside of Eclipse
-
Preferences → General → Workspace → Refresh using native hooks or polling
This enables Eclipse to recognize changes to files that have been modified outside of Eclipse. Pretty handy.
- Close all views you don’t need
-
Give yourself more space to view/write code by closing any views in the perspective that you don’t use, such as: Outline, Spring Explorer, and Servers
- Boot Dashboard
-
Use it, it’s awesome :)