Spring Boot Tips


 Enable Web Application Monitoring :

add the following to applications.properties

spring.jmx.enabled=true
management.endpoints.jmx.exposure.include=*
management.endpoints.web.exposure.include=*

Note: be sure to include spring-boot starters of actuator and web as follows:

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

Activate Live Reload

  1. Include devtools starter dependecy as follows:

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>

2. Install Chrome extension from http://livereload.com/extensions/

3. Toggle LiveReload icon on chrome to activate it