There was an unexpected error (type=Not Found, status=404).

springboot 使用thymeleaf模板来展示界面出现问题:

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Fri Oct 26 17:41:56 CST 2018

There was an unexpected error (type=Not Found, status=404).

No message available

出现了上述错误怎么办?好吧,不知道问题出现在哪里了,那就上网搜索吧。好吧,只有两种解决方式。

  1. pom.xml文件中并没有导入thymeleaf的依赖
  2. 说什么地址不对,检查打开的地址。(我没有遇到过)

然而,上述两种方式还不行,好吧,重新导入项目就可以了。我去,我发现重新导入项目解决了好些问题。

猜你喜欢

转载自blog.csdn.net/m0_37626203/article/details/83418662