摘要: 1)、国际化 1)、编写国际化配置文件; 2)、使用ResourceBundleMessageSource管理国际化资源文件 3)、在页面使用fmt:message取出国际化内容 步骤: 1)、编写国际化配置文件,抽取页面需要显示的国际化消息 2)、SpringBoot自动配置好了管理国际化资源文件 阅读全文
posted @ 2019-03-20 21:15 Mogle 阅读(700) 评论(0) 推荐(0) 编辑
摘要: 配置文件到底能写什么?怎么写?自动配置原理; 配置文件能配置的属性参照 1、自动配置原理: 1)、SpringBoot启动的时候加载主配置类,开启了自动配置功能 ==@EnableAutoConfiguration== 2)、@EnableAutoConfiguration 作用: 利用Enable 阅读全文
posted @ 2019-03-20 15:56 Mogle 阅读(424) 评论(0) 推荐(0) 编辑
摘要: https://docs.spring.io/spring-boot/docs/1.5.10.RELEASE/reference/htmlsingle/#boot-features-developing-web-applications 1. Spring MVC auto-configuratio 阅读全文
posted @ 2019-03-20 15:14 Mogle 阅读(1369) 评论(0) 推荐(0) 编辑
摘要: 1、引入thymeleaf; 2、Thymeleaf使用 只要我们把HTML页面放在classpath:/templates/,thymeleaf就能自动渲染; 使用: 1、导入thymeleaf的名称空间 2、使用thymeleaf语法; 3、语法规则 1)、th:text;改变当前元素里面的文本 阅读全文
posted @ 2019-03-20 14:44 Mogle 阅读(2581) 评论(0) 推荐(0) 编辑