![](https://img-blog.csdnimg.cn/20200311120702898.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
springboot
springboot学习笔记
Lz先生
我祈祷,当山花烂漫时,仍能遇见你。
展开
-
笔记:springboot中使用thymeleaf模板引擎实现国际化汉英语转换
1.写汉语英语配置资源文件 2.springboot自动配置好了管理国际化资源文件的组件 3.指定资源文件包名 spring.messages.basename=i18n.login 4.去页面获取国际化的值 thymeleaf使用#{}获取资源文件的值 <!--单标签--> <input type="checkbox" name="remember">[[#{log...原创 2020-04-06 19:16:10 · 316 阅读 · 0 评论 -
笔记:springboot日志处理与thymeleaf模板引擎的初步使用
springboot资源文件 1.静态资源放在 static public resources 等文件夹 2.欢迎页 index.html 以上三个路径随便放。 3.网页前的图标,自定义图标,命名为 favicon.ico 以上三个路径随便放 1.配置文件 #1.配置文件:随机数$(random.value) #2.配置文件:占位符$(dog.name)获取之前配置的值,如果没有:默认值$(d...原创 2020-04-05 20:12:55 · 231 阅读 · 0 评论