Successfully reported this slideshow.
Your SlideShare is downloading. ×

"Spring Boot. Boot up your development" Сергей Моренец

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Upcoming SlideShare
Intro JavaScript
Intro JavaScript
Loading in …3
×

Check these out next

1 of 36 Ad

"Spring Boot. Boot up your development" Сергей Моренец

Download to read offline

своем докладе я подробно расскажу о Spring Boot - библиотеке, которая значительно упрощает работу разработчика и уменьшает количество написанного кода.
Spring Boot позволяет быстрее и проще сконфигурировать сторонние библиотеки и фреймворки, а также предоставляет удобные сервисы для получения метрик работы приложения.
Я поделюсь своим опытом работы, интеграции с Maven/Gradle, покажу практические примеры использования этой технологии.
После этого доклада вы можете самостоятельно использовать Spring Boot в своих приложениях.

своем докладе я подробно расскажу о Spring Boot - библиотеке, которая значительно упрощает работу разработчика и уменьшает количество написанного кода.
Spring Boot позволяет быстрее и проще сконфигурировать сторонние библиотеки и фреймворки, а также предоставляет удобные сервисы для получения метрик работы приложения.
Я поделюсь своим опытом работы, интеграции с Maven/Gradle, покажу практические примеры использования этой технологии.
После этого доклада вы можете самостоятельно использовать Spring Boot в своих приложениях.

Advertisement
Advertisement

More Related Content

Slideshows for you (20)

Viewers also liked (20)

Advertisement

Similar to "Spring Boot. Boot up your development" Сергей Моренец (20)

More from Fwdays (20)

Advertisement

Recently uploaded (20)

"Spring Boot. Boot up your development" Сергей Моренец

  1. 1. Spring Boot. Boot up your development Sergey Morenets morenets@mail.ru
  2. 2. About author • Works in IT since 2000 • 11 years of Java SE/EE experience • Java lecturer • Multiple speaker at Java User Group • Winner of 2013 Jboss Community Recognition Award https://www.jboss.org/jbcra
  3. 3. Agenda • Overview • Spring Boot features • Setup & configuration • Q&A
  4. 4. Goal • Development environment • Launch web application • Minimum configuration
  5. 5. Goal
  6. 6. Spring Boot • Stand-alone Spring applications • Embed Tomcat or Jetty directly (no need to • deploy WAR files) • Automatically Spring configuration • Absolutely no code generation and no • requirement for XML configuration • Focus on business features and less on • infrastructure
  7. 7. Spring Boot
  8. 8. Spring Boot
  9. 9. Servlets
  10. 10. Filters
  11. 11. Spring Boot plugin
  12. 12. Spring Boot plugin • spring-boot:run • spring-boot:repackage
  13. 13. Dependencies
  14. 14. Dependencies
  15. 15. Customization
  16. 16. Tomcat 7
  17. 17. Jetty
  18. 18. Auto-configuration • AopAutoConfiguration • JpaRepositoriesAutoConfiguration • HibernateJpaAutoConfiguration • DataSourceAutoConfiguration • JmsTemplateAutoConfiguration • MongoAutoConfiguration • RedisAutoConfiguration • WebMvcAutoConfiguration • SecurityAutoConfiguration
  19. 19. Properties
  20. 20. Properties
  21. 21. Properties Class Prefix MessageSourceAutoConfiguration spring.messages BatchProperties spring.batch ElasticsearchProperties spring.data.elasticsearch FreeMarkerProperties spring.freemarker JacksonProperties spring.jackson DataSourceProperties spring.datasource JerseyProperties spring.jersey MailProperties spring.mail MongoProperties spring.data.mongodb SecurityProperties security WebMvcProperties spring.mvc
  22. 22. Properties
  23. 23. Spring Boot Actuator • Helps manage and monitor applications when pushed to production • Accessible via HTTP, JMX or remote shell
  24. 24. Spring Boot Actuator • Series of endpoints to help manage your Spring application • Reads properties and spring beans and then returns a JSON view • Allows direct access to non functional application information without having to open an IDE or a command prompt
  25. 25. Spring Boot Actuator
  26. 26. Spring Boot Actuator • /info • /health • /beans • /env • /dump • /metrics • /trace • /autoconfigurationreport • /shutdown
  27. 27. Spring Boot Actuator. Health
  28. 28. Spring Boot Actuator. Health
  29. 29. Spring Boot Actuator.Metrics • Includes a metrics service with ‘gauge’ and ‘counter’ support • A ‘gauge’ records a single value; and a ‘counter’ records a delta (an increment or decrement) • Metrics for all HTTP requests are automatically recorded
  30. 30. Spring Boot Actuator.Metrics • System metrics • Datasource metrics • WebServer metrics • Custom metrics
  31. 31. Spring Boot Actuator. Metrics
  32. 32. Spring Boot Actuator. Custom metrics
  33. 33. Spring Boot Actuator. Metrics
  34. 34. Pro • No configuration files • Auto-configuration • Maven, Gradle & Ant integration • Tomcat, Jetty and Undertow built-in support • Configuration for multiple Java technologies • Monitoring & management out-of-box
  35. 35. Cons • Based on Spring Framework • Additional configuration for web servers
  36. 36. Q&A

×