微信搜索:小大白日志
摘要: 先在pom文件引入freemark,thymeleaf的依赖,thymeleaf的html文件放在Resource-templates-thymeleaf目录下,freekmarker的ftl文件放在Resource-templates-freemarker目录下,再properties文件设置各自 阅读全文
posted @ 2019-12-25 22:37 明天喝可乐 阅读(307) 评论(0) 推荐(0)
摘要: 1、properties文件内容映射到类对象(属性),如Resource目录下的1.properties文件已配置前缀为com.imooc.people相关的信息,然后: pom添加依赖:springboot-configuration-processor People类对象上方添加注解: @Con 阅读全文
posted @ 2019-12-25 22:32 明天喝可乐 阅读(1511) 评论(0) 推荐(0)