
thymeleaf
菜鸟的自我素养
java开发
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
thymeleaf的语法
@ConfigurationProperties(prefix = "spring.thymeleaf") public class ThymeleafProperties { private static final Charset DEFAULT_ENCODING = Charset.forName("UTF-8"); private static final MimeType DEF...原创 2019-07-07 17:35:40 · 575 阅读 · 0 评论 -
thymeleaf简单语法应用(一)
HelloController.java: package com.springboot.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web...原创 2019-07-07 17:48:43 · 259 阅读 · 0 评论 -
springboot实现国际化
在springmvc中实现国际化的步骤一般分为以下几步: 1)、编写国际化配置文件; 2)、使用ResourceBundleMessageSource管理国际化资源文件 3)、在页面使用fmt:message取出国际化内容 在springboot中自动装配好了国际化的组件,我们只需要进行简单的配置和取值即可, 1)、编写国际化配置文件; 配置文件一共有三个,一个默认配置文件,一个英文,一个中文 ...原创 2019-07-08 18:32:38 · 15426 阅读 · 1 评论 -
springboot实现用户登录(拦截器)
login.html Signin Template for Bootstrap <body class="text-center"> <form class="form-signin" action="dashboard.html" th:action="@{user/login}" th:method="pos...原创 2019-07-08 23:43:31 · 8268 阅读 · 1 评论 -
springboot引入thymeleaf
在springboot中无法直接使用jsp,因此使用模板引擎https://docs.spring.io/spring-boot/docs/ 3、模板引擎 JSP、Velocity、Freemarker、Thymeleaf [外链图片转存失败(img-onZPQVsD-1562483431131)(images/template-engine.png)] SpringBoot推荐的Thymelea...原创 2019-07-07 15:31:40 · 377 阅读 · 0 评论