idea springboot熱部署無效問題
阿新 • • 發佈:2017-08-07
pen sdn href ati intel int idea title spring
Intellij IDEA 使用Spring-boot-devTools無效解決辦法
springboot項目中遇到的bug
<dependencies> <!--spring boot 熱加載--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional><!-- optional=true,依賴不會傳遞,該項目依賴devtools;之後依賴myboot項目的項目如果想要使用devtools,需要重新引入 --> </dependency> </dependencies> <build> <plugins> <!--spring boot 打包插件--> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <mainClass>com.hjzgg.test.thirdjar.Application</mainClass> <fork>true</fork> </configuration> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin> </plugins> </build>
idea springboot熱部署無效問題