A Secure and Reliable Document Management System is Essential.docx
Spring Boot. Boot up your development. JEEConf 2015
1. Spring Boot.
Boot up your development
Sergey Morenets, May 23, 2015
morenets@mail.ru
2. About author
• Works in IT since 2000
• 11 years of Java SE/EE experience
• Multiple speaker at Java User Group
• Founder of http://it-simulator.com
• Author of “Main Java programming errors”
and “Development of Java applications”
books
8. Spring Boot
• Stand-alone Spring applications
• Embed Tomcat or Jetty directly
• Automatically Spring configuration
• Absolutely no code generation and no
requirement for XML configuration
• Convention-over-configuration
• Focus on business features and less on
infrastructure
32. Spring Boot Actuator
• Helps manage and monitor applications
when pushed to production
• Accessible via HTTP, JMX or remote shell
• You can't manage what you can't measure
33. 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
36. Spring Boot Actuator. Health
Indicators
DiskSpaceHealthIndicator Checks for low disk space.
DataSourceHealthIndicator Checks that a connection to
DataSource can be obtained.
MongoHealthIndicator Checks that a Mongo database is
up.
RabbitHealthIndicator Checks that a Rabbit server is up.
RedisHealthIndicator Checks that a Redis server is up.
SolrHealthIndicator Checks that a Solr server is up.
41. 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
52. Pro
• Reduces deployment and development
time
• No configuration files
• Auto-configuration
• Maven, Gradle & Ant integration
• Embedded servers
• Multiple technologies support
• Monitoring & management out-of-box
53. Cons
• Based on Spring Framework
• Additional configuration for web servers
54. Dropwizard
• Lightweight alternative
• REST web services support using Jersey
• Embedded servers
• Logging and validation
• Templating systems
• Metrics library