springboot出现This application has no explicit mapping for /error...错误

之前出现过这种错误,在网上找了很多,都是说springboot启动类的位置应该放在最外面,又没有给出确切的解决办法,真的是服了,大多数人都是直接复制别人的,来骗取浏览量,实在是鄙视这种人,我出现这种错误后,看到后台出现“元素类型 "link" 必须由匹配的结束标记 "" 终止”这种错误提示,所以才知道,原来不是springboot启动类的错误,而是pom.xml加少了东西

代码我直接贴在下面,方便你们复制

<thymeleaf.version>3.0.2.RELEASE</thymeleaf.version>
<thymeleaf-layout-dialect.version>2.0.5</thymeleaf-layout-dialect.version>

猜你喜欢

转载自blog.csdn.net/abc_123456___/article/details/86567316