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.running5.瀏覽器控制檯[禁止緩存]勾選 Network > Disable cache

                
    
相關文章
相關標籤/搜索