完整错误如下:
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Wed Aug 03 11:42:15 GMT+08:00 2016
There was an unexpected error (type=Not Found, status=404).
No message available
- 可能没有在pom.xml中导入thymeleaf依赖,导入即可;
- 访问路径与controller层的写的路径映射不一致故导致访问不到页面;
- 这是最为致命的一点,springboot与thymeleaf版本冲突故导致问题冲突
解决方法为:将parent依赖的版本提高可以完美解决这个问题。