Building Microservices with Spring Boot and Docker
Part 1: Spring Boot
Spring "Boot"?
https://spring.io/projects
Where to start?
Main design goals
Picture: https://flic.kr/p/nZxKRM
“Spring Boot […] is designed to get you up and running as quickly as possible.”
Picture: https://flic.kr/p/aD4qRA
"Spring Boot favors convention over configuration […]."
And the details?
Picture: https://flic.kr/p/qRbJHR
Picture: https://flic.kr/p/GKRfZK
Embedded Tomcat, Jetty…
Stand-alone
No need to deploy .war’s/.ear’s
Stand-alone, no deployment
$ java -jar cxf-boot-simple-0.0.1-SNAPSHOT.jar
or
$ mvn spring-boot:run
Picture: https://flic.kr/p/4oTrpa
'starter' POMs to simplify Maven configuration
'starter' POMs
Batch, Messaging, Caching, Relational Databases, JPA, NoSQL, whatever, Redis, Integration, Logging, WebServices, Mail, Security, Webapps, REST,…
github.com/spring-projects/spring-boot/tree/master/spring-boot-project/spring-boot-starters (official)
Picture: https://flic.kr/p/qRbJHR
something more?
Picture: https://flic.kr/p/8Fyhn9
Automatically configure Spring whenever possible
Automatic configuration
Picture: https://flic.kr/p/qRbJHR
Picture: https://flic.kr/p/6HgM6u
Production-ready features
Metrics, health checks, externalized configuration…
Picture: https://flic.kr/p/gBK349
No code generation
No XML configuration!
Let´s go!
Where to start?
brew|choco|agt-get install git
brew|choco|agt-get install maven
brew cask|choco|agt-get install java|jdk8
brew cask|choco|agt-get install docker
Copy of Part 1: Spring Boot and Setup
By jonashackt
Copy of Part 1: Spring Boot and Setup
Building Microservices with Spring Boot and Docker
- 1,225