spring boot启动类启动 错误: 找不到或无法加载主类 xxx.xxxx.Application 的解决方法
导入的一个外部的spring boot项目,运行启动类,忽然提示找不到或者无法加载主类,通常有两种常用的解决方式
方法一:清空idea缓存
idea清理缓存:file -> Invalidate Cache & Restart IDEA
方法二:maven重新install
执行命令:mvn clean install -DskipTests=true
spring boot启动类启动 错误: 找不到或无法加载主类 xxx.xxxx.Application 的解决方法
导入的一个外部的spring boot项目,运行启动类,忽然提示找不到或者无法加载主类,通常有两种常用的解决方式
方法一:清空idea缓存
idea清理缓存:file -> Invalidate Cache & Restart IDEA
方法二:maven重新install
执行命令:mvn clean install -DskipTests=true