21
1 Spring Boot Update Sergi Almar @sergialmar Singapore SUG – Jan 2016

Spring Boot Update

Embed Size (px)

Citation preview

Page 1: Spring Boot Update

1

Spring Boot Update

Sergi Almar@sergialmar

Singapore SUG – Jan 2016

Page 2: Spring Boot Update

2

CFP IS OPEN!

Page 3: Spring Boot Update

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

Page 4: Spring Boot Update

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

Page 5: Spring Boot Update

5

Page 6: Spring Boot Update

6

Page 7: Spring Boot Update

7

Page 8: Spring Boot Update

8

Spring Boot 1.3

Requires Spring Framework 4.2, uses Spring Security 4.0 Colorful ASCII art banners - DEMO

Page 9: Spring Boot Update

9

DEMO

Page 10: Spring Boot Update

10

Developer Tools

Sensible Property defaults Automatic application restart Remote development support LiveReload support Persistent HTTP session across restarts

Page 11: Spring Boot Update

11

DEMO

Page 12: Spring Boot Update

12

Caching Auto-configuration

Auto configuration for:

JCache (JSR 107)

Page 13: Spring Boot Update

13

DEMO

Page 14: Spring Boot Update

14

More Auto-configuration

Cassandra Spring Session OAuth2 jOOQ SendGrid Artemis

Page 15: Spring Boot Update

15

DEMO

Page 16: Spring Boot Update

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

Page 17: Spring Boot Update

17

DEMO

Page 18: Spring Boot Update

18

Spring Boot 1.3

Persistent sessions Support for @WebServlet, @WebFilter and @WebListener

– Using @ServletComponentScan

And much more…

Page 19: Spring Boot Update

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

Page 20: Spring Boot Update

20

Spring Boot 1.4

Page 21: Spring Boot Update

21

Spring 5

Q4 2016 Comprenhensive JDK 9 support Java 8 baseline Servlet 3.0+ HTTP/2 Reactive support