2020
10-10
10-10
spring boot 项目中使用thymeleaf模板的案例分析
准备MySql数据库,表Prereg,IDEA数据库中的表如下所示:IDEA目录结构如下:添加thymeleaf依赖:<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-thymeleaf</artifactId></dependency>开始添加代码:在controller包添加类“PreregController”packagecom.example.demo.controller;importcom.example.demo.mapper.PreregMapper;importcom.example.demo.pojo.Prereg;importorg.sprin...
继续阅读 >