<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-devtools --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <version>2.0.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>
支持熱加載的目錄 |
---|
/META-INF/maven |
/META-INF/resources |
/resources |
/static |
/public |
/templates |
#熱加載生效 spring.devtools.restart.enabled=true #額外新增的熱加載目錄 spring.devtools.restart.additional-paths= src/main/java #熱加載排除目錄 #spring.devtools.restart.exclude=
在pom文件中能夠查看是否有衝突 | pom文件 | | :------------: | | |java
將紅色部分衝突的右鍵排除便可,實質本質是在pom中的將對應的衝突exclude掉spring
衝突解決 |
---|
![]() |