springboot 找不到启动类

新建了一个springboot项目,启动的时候提示找不到启动类,从控制台mvn install后就可以启动,说明是没有编译。开发过程中发现重启都不会重新编译,最终发现是idea没有开启自动编译配置
setting -> compiler -> build project automatically


image.png

ctrl + shift + a 搜索命令:registry –> 勾选compiler.automake.allow.when.app.running

你可能感兴趣的:(springboot 找不到启动类)