摘要: Thymeleaf只是个模板引擎,与前端框架相互独立。 使用步骤: 1.引入依赖。 org.thymeleaf thymeleaf spring5 3.0.9.RELEASE 2.配置 3.在页面上加入 4.编写页面 阅读全文
posted @ 2019-08-01 13:12 Utb 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1.引入依赖。mysql、mybatis spring boot starter。 2.配置数据库。 spring.datasource.url=jdbc:mysql://localhost:3306/test spring.datasource.username=root spring.datas 阅读全文
posted @ 2019-08-01 12:31 Utb 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 一: 定义:email=zasxzhao@qq.com 使用:@Value("${email}") 阅读全文
posted @ 2019-08-01 11:04 Utb 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 使用步骤: 1.建立Filter类。实现Filter接口 @WebFilter(filterName = "test", urlPatterns = "/success/ ") public class UrlFilter implements Filter { @Override public v 阅读全文
posted @ 2019-08-01 10:35 Utb 阅读(131) 评论(0) 推荐(0) 编辑