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

 



 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM