1
Spring Boot Update
Sergi Almar
@sergialmar
Singapore SUG – Jan 2016
2
CFP IS OPEN!
3
10 years of teaching Spring
 2006: xml namespace was a big revolution
– Turned 300 lines of XML config into 10 lines
 2007: Creation of Spring MVC as we know it now
– Based on annotations @RequestMapping, @RequestParam…
 2009: JavaConfig
 2011: Profiles
 2014: Spring Boot 1.0!
– Convention over configuration, smart tools
4
Spring Boot
 An opinionated runtime for Spring Projects
– Convention-over-configuration, no XML, no code generation
 Supports different project types, like Web and Batch
 Handles most low-level, predictable setup for you
– Auto-configure, embedded servlet engine
5
6
7
8
Spring Boot 1.3
 Requires Spring Framework 4.2, uses Spring Security 4.0
 Colorful ASCII art banners - DEMO
9
DEMO
10
Developer Tools
 Sensible Property defaults
 Automatic application restart
 Remote development support
 LiveReload support
 Persistent HTTP session across restarts
11
DEMO
12
Caching Auto-configuration
 Auto configuration for:
JCache (JSR 107)
13
DEMO
14
More Auto-configuration
 Cassandra
 Spring Session
 OAuth2
 jOOQ
 SendGrid
 Artemis
15
DEMO
16
Fully Executable JARs
 You can now execute a JAR as: ./my.jar
 Or install it on init.d
– $ sudo link -s /var/myapp/my.jar /etc/init.d/myapp
17
DEMO
18
Spring Boot 1.3
 Persistent sessions
 Support for @WebServlet, @WebFilter and @WebListener
– Using @ServletComponentScan
 And much more…
19
Migrating to Spring Boot 1.3
 Several properties renamed
 Check out the updated dependencies
 More: https://github.com/spring-projects/spring-
boot/wiki/Spring-Boot-1.3-Release-Notes
20
Spring Boot 1.4
21
Spring 5
 Q4 2016
 Comprenhensive JDK 9 support
 Java 8 baseline
 Servlet 3.0+
 HTTP/2
 Reactive support

Spring Boot Update

  • 1.
    1 Spring Boot Update SergiAlmar @sergialmar Singapore SUG – Jan 2016
  • 2.
  • 3.
    3 10 years ofteaching Spring  2006: xml namespace was a big revolution – Turned 300 lines of XML config into 10 lines  2007: Creation of Spring MVC as we know it now – Based on annotations @RequestMapping, @RequestParam…  2009: JavaConfig  2011: Profiles  2014: Spring Boot 1.0! – Convention over configuration, smart tools
  • 4.
    4 Spring Boot  Anopinionated runtime for Spring Projects – Convention-over-configuration, no XML, no code generation  Supports different project types, like Web and Batch  Handles most low-level, predictable setup for you – Auto-configure, embedded servlet engine
  • 5.
  • 6.
  • 7.
  • 8.
    8 Spring Boot 1.3 Requires Spring Framework 4.2, uses Spring Security 4.0  Colorful ASCII art banners - DEMO
  • 9.
  • 10.
    10 Developer Tools  SensibleProperty defaults  Automatic application restart  Remote development support  LiveReload support  Persistent HTTP session across restarts
  • 11.
  • 12.
    12 Caching Auto-configuration  Autoconfiguration for: JCache (JSR 107)
  • 13.
  • 14.
    14 More Auto-configuration  Cassandra Spring Session  OAuth2  jOOQ  SendGrid  Artemis
  • 15.
  • 16.
    16 Fully Executable JARs You can now execute a JAR as: ./my.jar  Or install it on init.d – $ sudo link -s /var/myapp/my.jar /etc/init.d/myapp
  • 17.
  • 18.
    18 Spring Boot 1.3 Persistent sessions  Support for @WebServlet, @WebFilter and @WebListener – Using @ServletComponentScan  And much more…
  • 19.
    19 Migrating to SpringBoot 1.3  Several properties renamed  Check out the updated dependencies  More: https://github.com/spring-projects/spring- boot/wiki/Spring-Boot-1.3-Release-Notes
  • 20.
  • 21.
    21 Spring 5  Q42016  Comprenhensive JDK 9 support  Java 8 baseline  Servlet 3.0+  HTTP/2  Reactive support