idea hot deployment configuration springboot

1. increased reliance

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

2. Turn on the hot deployment support

<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!--fork:设置True,否则可能devtools不会起作用-->
<fork>true</fork>
</configuration>
</plugin>

3. Test

  • mvn spring-boot: run to start the project
  • Modify the code
  • Ctl + s save the code, Ctl + F9 compiled
  • View the new results

Guess you like

Origin www.cnblogs.com/lmjsdoit/p/11818331.html