對的樓下說的對,我的也是我的server.context-path要報錯,寫成server.servlet.context-path才行
2018-03-29
我加了項目路徑后,報以下錯誤Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Thu Mar 29 11:12:51 GMT+08:00 2018
There was an unexpected error (type=Not Found, status=404).
No message available
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Thu Mar 29 11:12:51 GMT+08:00 2018
There was an unexpected error (type=Not Found, status=404).
No message available
2018-03-29
如果還沒有配置數據源,在啟動類配置要加上@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
2018-03-29
如果是找不到entity,可以查看AreaDao.xml配置的parameterType或resultType是否寫錯
2018-03-24