idea 修改代码自动编译

pom.xml文件修改
1.在dependencies 下添加
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <scope>runtime</scope>
</dependency>

2.在build > plugins > plugin 下添加
    <configuration>
        <fork>true</fork>
    </configuration>

3.file > Build,Execution,Deployment > Compiler
勾选 Build project automatically

4.Crtl+Alt+Shift+/
勾选 compiler.automake.allow.when.app.running

5.浏览器控制台[禁止缓存]
勾选 Network > Disable cache

 



 

posted @ 2019-01-14 17:52  CorderBob  阅读(2703)  评论(0编辑  收藏  举报