spring boot 踩坑日记: 错误: 找不到或无法加载主类 xxx.xxx.xxx

错误信息: 错误: 找不到或无法加载主类 io.sr.SrDhTraApplication

解决:

在pom.xm文件中指明启动类位置:

代码:

    <configuration>
		<fork>true</fork>
		<maimClass>io.sr.SrDhTraApplication</maimClass>
	</configuration>

如果启动还报错就clean一下项目:


 

然后再启动就OK了

猜你喜欢

转载自blog.csdn.net/ityqing/article/details/83089223
今日推荐