1. 程式人生 > >idea 修改程式碼自動編譯

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