Whitelabel Error Page There was an unexpected error (type=Not Found, status=404)

最近在做springboot項目的freemarker模板,當一切配置好運行時,什麼都沒有做呢,就先給我來了一個小驚喜。經過百度各種博客,發現普遍的3種情況: 第1種 Application啓動類的位置不對.要將Application類放在最外側,即包含所有子包,spring-boot會自動加載啓動類所在包下及其子包下的所有組件 第2種 在springboot的配置文件:application.y
相關文章
相關標籤/搜索