新建了一个springboot项目,启动的时候提示找不到启动类,从控制台mvn install后就可以启动,说明是没有编译。开发过程中发现重启都不会重新编译,最终发现是idea没有开启自动编译配置
setting -> compiler -> build project automatically
image.png
ctrl + shift + a 搜索命令:registry –> 勾选compiler.automake.allow.when.app.running
新建了一个springboot项目,启动的时候提示找不到启动类,从控制台mvn install后就可以启动,说明是没有编译。开发过程中发现重启都不会重新编译,最终发现是idea没有开启自动编译配置
setting -> compiler -> build project automatically
ctrl + shift + a 搜索命令:registry –> 勾选compiler.automake.allow.when.app.running
本文标题:springboot 找不到启动类
本文链接:https://www.haomeiwen.com/subject/zluhcctx.html
网友评论