idea 修改代码自动编译

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

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

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

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

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

 



 

转载于:https://www.cnblogs.com/Doduo/p/10268191.html

你可能感兴趣的:(开发工具,java)