标签:lease cti prope artifact false ati config str 依赖
maven依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <version>2.2.4.RELEASE</version> </dependency>
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <fork>true</fork> </configuration> </plugin> </plugins> </build>
注意添加这段
<configuration> <fork>true</fork> </configuration>
在设置中勾选Build project automatically,但是默认情况下只能在没有运行的条件下才生效,自然不能实现热部署,所以
进入Registry勾选compiler.automake.allow.when.app.running
最后在application.properties添加
spring.thymeleaf.cache=false
spring.devtools.restart.enabled=true
spring.devtools.restart.additional-paths=/src/main/java
标签:lease cti prope artifact false ati config str 依赖
原文地址:https://www.cnblogs.com/-rzx-/p/12458054.html