課程
/后端開發(fā)
/Java
/SpringBoot開發(fā)常用技術(shù)整合
deprecated configuration property spring.thymeleaf.content-type
2018-07-19
源自:SpringBoot開發(fā)常用技術(shù)整合 6-2
正在回答
是的,現(xiàn)在使用properties文件配置thymealeaf的上下文類型推薦使用
spring.thymeleaf.servlet.content-type=text/html
其實(shí)現(xiàn)在springboot配置更推薦使用yml文件,相比properties文件,yml配置上更簡便,你可以百度了解下,希望可以幫到你。
舉報(bào)
SpringBoot 極簡開發(fā)的框架整合利器
1 回答不論是用@Configuration還是@Component都報(bào)錯(cuò)
3 回答Description: Field resource in com.imooc.controller.HelloContoller required a bean of type 'com.imocc.pojo.Resource' that could not be found. Action: Consider defining a bean of type 'com.imocc.pojo.Resource' in your configuration.
2 回答spring-boot-devtools已經(jīng)生效,不過修改文件后需要等待一會才生效
2 回答Cannt resovle Configuration properties restart.include.mapper
1 回答已經(jīng)注入Resource,那new出來的對象不應(yīng)該也有數(shù)據(jù)么?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2018-07-20
是的,現(xiàn)在使用properties文件配置thymealeaf的上下文類型推薦使用
其實(shí)現(xiàn)在springboot配置更推薦使用yml文件,相比properties文件,yml配置上更簡便,你可以百度了解下,希望可以幫到你。