1、关闭
kotlin
插件
高版本idea自动开启
kotlin
插件,在编译java 项目时,会出现
Kotlin: connecting to daemon
File —> settings —> plugins —> 搜索kotlin 选择禁用框
https://blog.csdn.net/yulin_g/article/details/107778430
2、打开自动编译
File —> Settings—> Build,Execution,Deployment—>Compiler—>project automatically打勾
设置Registry
快捷键 ctrl+alt+shift+’/’ —>Registry —> compiler.automake.allow.when.app.running 打勾,建议按名称排序后,查找
附录:
SpringBoot在IDEA中通过配置devtools实现热部署还需要添加依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>