Spring Boot application refreshed in real time without having to restart convenient debugging

Previous article have

  1. Spring Boot output in the first web browser Hello
  2. Spring Boot establish a web controller
  3. 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>

 

Released five original articles · won praise 1 · views 343

Guess you like

Origin blog.csdn.net/onion101325/article/details/104377290