啟動spring boot然後訪問頁面的時候,出現如下錯誤:

Whitelabel Error Page


This application has no explicit mapping for /error, so you are seeing this as a fallback.
Mon Jul 06 21:57:13 CST 2015
There was an unexpected error (type=Not Found, status=404).
No message available

發現是配置出錯了!

spring.mvc.view.prefix: /WEB-INF/jsp/
spring.mvc.view.suffix: .jsp應該改為

spring.view.prefix=/WEB-INF/jsp/
spring.view.suffix=.jsp。

 



轉自:https://blog.csdn.net/wujinsong2010/article/details/46785183