解决Spring Boot 出现This application has no explicit mapping for /error...错误

时间:2021-7-31    作者:z    分类: 开发日记


在访问springboot静态资源时出现了:

error.png

而且在进行请求,通过thymeleaf解析时又出现了:

 Exception processing template "xxx": Error resolving template [xxx], template might not exist or might not be accessible by any of the configured Template Resolvers

这样的异常。


error2.png

花了半天时间,在网上找遍了所有的解决方法都不管用。。


最后发现之前在解决另一个问题时在pom.xml中加入了这个:

1627718188(1).jpg

把它注释掉,

22333.png

然后重新编译运行,问题解决= =。

绝了。。

标签: 开发日记