課程
/后端開發
/Java
/SpringBoot開發常用技術整合
這里是不是只要配置了th標簽,不管這個標簽的屬性有沒有賦值,后面的都不會顯示?
2021-01-09
源自:SpringBoot開發常用技術整合 6-2
正在回答
這個是動靜分離技術。
如果當成靜態頁面,也就是用瀏覽器打開這個文件,就會顯示文件中定義的hello world ~~~~~~~
當spring boot啟動之后,通過瀏覽器地址訪問,就成了動態頁面,th:text里面定義的變量名就會獲得值,并替代頁面上的hello world ~~~~~~~
舉報
SpringBoot 極簡開發的框架整合利器
3 回答thymeleaf無法訪問
1 回答thymeleaf
2 回答請教一個thymeleaf的問題 報錯org.thymeleaf.exceptions.TemplateInputException: Error resolving template "thymeleaf/index"
1 回答thymeleaf加載報錯
1 回答引入thymeleaf模版訪問報錯
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2021-06-16
這個是動靜分離技術。
如果當成靜態頁面,也就是用瀏覽器打開這個文件,就會顯示文件中定義的hello world ~~~~~~~
當spring boot啟動之后,通過瀏覽器地址訪問,就成了動態頁面,th:text里面定義的變量名就會獲得值,并替代頁面上的hello world ~~~~~~~