原文:SpringBoot+Thyemleaf報錯Template might not exist or might not be accessible

第一次搭建SpringBoot Thyemleaf項目,就遇見這個錯誤,所以記錄一下 出現這個錯誤大致從以下幾個方面排除 application.yml的配置問題 pom.xml導入,需導入以下依賴 上述配置之后,執行maven clean maven install。 ...

2019-10-28 13:53 0 335 推薦指數:

查看詳情

template might not exist or might not be accessible by any of the configured

報這個錯的前提是在springboot的項目中使用了thymeleaf模版或freemarker模版。 然后原因一般有二: 1.真的沒有這個模版文件,或是模版文件路徑不正確。 2.在非模版頁面的請求中沒有使用@RestController或@ResponseBody注解,或是反過來,在模版 ...

Sat May 09 14:55:00 CST 2020 0 14854
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM