Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Spring Boot

This present

  • Be the first to comment

Spring Boot

  1. 1. Spring Boot Eberhard Wolff Freelancer / Trainer Head Technology Advisory Board adesso http://ewolff.com
  2. 2. Eberhard Wolff - @ewolff What does it take to implement a Java Web Application?
  3. 3. Eberhard Wolff - @ewolff Any non-Java guys in the room?
  4. 4. Eberhard Wolff - @ewolff Java AppServer Libraries Build WAR #SRSLY?
  5. 5. Enter Spring Boot
  6. 6. Spring Boot Demo
  7. 7. Eberhard Wolff - @ewolff Spring Boot •  Build much easier •  Supports Gradle & Ant, too •  Not limited to simple application •  Can add any other library •  Application much easier to test, debug etc •  Simple code
  8. 8. Let‘s add Spring Data JPA!
  9. 9. Eberhard Wolff - @ewolff Spring Data JPA •  Makes implementation of repositories trivial •  Just provide an interface •  Needs JPA infrastructure of course
  10. 10. Spring Boot + Spring Data JPA Demo
  11. 11. Eberhard Wolff - @ewolff Behind the Scenes •  DataSource for HSQL created •  JPA infrastructure created •  Thymeleaf infrastructure created •  Can also use JSP, Velocity, Freemarker, Groovy templates •  How does it work? •  Convention over configuration
  12. 12. Eberhard Wolff - @ewolff Spring Boot •  Creates sensible infrastructure defaults •  i.e. DataSource if HSQL is on the classpath •  Done by *AutoConfiguration classes
  13. 13. Auto Configuration
 Demo
  14. 14. Eberhard Wolff - @ewolff Spring Boot Starter •  Support for specific frameworks amqp aop batch data-jpa data-mongodb data-rest integration jdbc mobile redis security test web websocket actuator remote-shell jetty tomcat log4j logback web services social elasticsearch Solr Flyway Liquibase Gemfire
  15. 15. Spring Boot for Dev
  16. 16. Eberhard Wolff - @ewolff Dev •  Turn Around •  Thymeleaf Templates can be changed on the fly •  …same with class files •  Spring Loaded makes reloading more powerful
  17. 17. Spring Boot
 for Dev
 Demo
  18. 18. Spring Boot for Ops
  19. 19. Eberhard Wolff - @ewolff CRaSH Shell •  Ever ssh’d into your application? •  Enter CRaSH •  External library integrated into Spring Boot •  Alternative approach to operations
  20. 20. Spring Boot
 CRaSH Demo
  21. 21. Eberhard Wolff - @ewolff Actuator •  Provide information about the application •  Via http / JSON •  Can be evaluated by monitoring tools etc. •  Another alternative approach to monitoring
  22. 22. Spring Boot
 Actuator Demo
  23. 23. Eberhard Wolff - @ewolff Deploy •  Just package everything in an executable JAR •  …or a WAR •  Based on Maven or Gradle •  Build in configuration (YAML, properties etc.)
  24. 24. Spring Boot
 Deploy Demo
  25. 25. Eberhard Wolff - @ewolff What‘s next? Spring Cloud •  Technologies for Micro Services •  E.g. Configuration •  Resilience •  Netflix stack •  Cloud Bus •  Cloud Security •  Based on Spring Boot
  26. 26. Eberhard Wolff - @ewolff Spring Boot 1.2 •  Spring 4.1 •  JTA •  JNDI for DataSources / JMS •  Stay tuned
  27. 27. Eberhard Wolff - @ewolff Conclusion •  Easy to start •  Can add libraries and features as needed •  Dev: Quick turn around •  Ops: Integrated monitoring •  Ops: Easy deployment
  28. 28. Eberhard Wolff - @ewolff Conclusion •  Easy to start •  Can add libraries and features as needed •  Dev: Quick turn around •  Ops: Integrated monitoring •  Ops: Easy deployment •  Didn’t show Groovy support
  29. 29. Eberhard Wolff - @ewolff Links http://start.spring.io/ http://projects.spring.io/spring-boot/ https://github.com/spring-projects/spring-boot https://github.com/ewolff/spring-boot-demos https://spring.io/guides/gs/spring-boot/ https://spring.io/guides/gs/actuator-service/ https://spring.io/guides/gs/spring-boot-cli- and-js/
  30. 30. Eberhard Wolff - @ewolff Thank You!!

×