环境:Mac、IDEA、JDK1.8
省略构建项目的步骤直接上代码:

1:项目结构
SpringBoot+Mybatis+Thymeleaf实现CURD详细基本配置
2:pom.xmlSpringBoot+Mybatis+Thymeleaf实现CURD详细基本配置
3:properties配置文件(相同配置的yml文件)
SpringBoot+Mybatis+Thymeleaf实现CURD详细基本配置
SpringBoot+Mybatis+Thymeleaf实现CURD详细基本配置
4:Controller(增删改查)
SpringBoot+Mybatis+Thymeleaf实现CURD详细基本配置SpringBoot+Mybatis+Thymeleaf实现CURD详细基本配置
SpringBoot+Mybatis+Thymeleaf实现CURD详细基本配置
SpringBoot+Mybatis+Thymeleaf实现CURD详细基本配置
5:Mapper.xml
SpringBoot+Mybatis+Thymeleaf实现CURD详细基本配置
6:页面(thymeleaf模版)
SpringBoot+Mybatis+Thymeleaf实现CURD详细基本配置
SpringBoot+Mybatis+Thymeleaf实现CURD详细基本配置
SpringBoot+Mybatis+Thymeleaf实现CURD详细基本配置
7:注意事项:
** 图片的html中的报错可直接忽略**
1⃣️模版文件中(html)必须引入thymeleaf的xmlns (否则标签报错无效)
2⃣️yml文件不识别可能是idea默认没有开启YAML插件 (去IDEA中找到已安装的插件列表中开启就OK)
8:交流群
SpringBoot+Mybatis+Thymeleaf实现CURD详细基本配置

相关文章: