Previous article have
- Spring Boot output in the first web browser Hello
- Spring Boot establish a web controller
- Spring Boot application creates a deployable war files to a tomcat
Presented here: When re-edit the code, you want to debug results, the default is the need to manually restart the Spring Boot application, how to program in real time without having to manually refresh to restart it? Just add the following code to the pom file.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>