Disconnected from the target VM, address: '127.0.0.1:5954', transport: 'sock
一直能正常运行的本地项目,在IDEA中突然跑不起来
解决步骤:
给application启动类的run方法加上try-catch
打印日志为Failed to determine a suitable driver class,说是数据源有问题
实则是IDEA抽风了
1.尝试删除idea缓存重启Invalidate Caches / Restart...,无效
2.尝试rebuild project,无效
3.尝试用maven来clean,无效
4.用maven的整个项目install,解决了
每个人情况不一样,以上方法都可以试试