IDEA环境下遇到找不到或无法加载主类
问题描述
在IDEA中跑maven部署的springboot项目,遇到报错
Connected to the target VM, address: ‘127.0.0.1:64698’, transport: ‘socket’
错误: 找不到或无法加载主类 com.xx.xx.MainWebApplication
Disconnected from the target VM, address: ‘127.0.0.1:64698’, transport: ‘socket’
解决办法
找到项目根目录下的target文件夹,清空,重新跑即可