亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

Error resolving template "thymeleaf/index", template might not exist or might not be accessible by any of the configured Template Resolvers

這個是什么原因??? POM.xml也有了,目錄下也創建了相應的center/center.html 和index.html就是出現這個錯誤????

Error resolving template "thymeleaf/index", template might not exist or might not be accessible by any of the configured Template Resolvers

正在回答

3 回答

我看過了,都沒問題,但是還是錯


0 回復 有任何疑惑可以回復我~
thymeleaf:
??prefix:?classpath:/templates/

thymeleaf 的classpath只要多一個斜杠的,漏斜杠就會有問題,freemarker不需要后面那個斜杠


1 回復 有任何疑惑可以回復我~
#1

羅小黑003

這個是freemarker和thymeleaf的區別嗎
2019-09-06 回復 有任何疑惑可以回復我~

確認文件是否有建立在正確的目錄下,或者看下你的模板配置信息,確認【spring.thymeleaf.prefix】這個屬性配置的文件前綴什么的

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

Error resolving template "thymeleaf/index", template might not exist or might not be accessible by any of the configured Template Resolvers

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號