模板引擎
菜鸟的自我素养
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 · 540 阅读 · 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 · 214 阅读 · 0 评论 -
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 · 8178 阅读 · 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 · 317 阅读 · 0 评论