摘要: Spring Boot整合通用Mapper 目标:配置通用Mapper组件到Spring Boot项目中并使用Mapper接口 分析: 通用Mapper :可以实现自动拼接sql语句;所有的mapper都不需要编写任何方法也就是不用编写sql语句。可以提高开发效率。 1.添加启动器依赖; <!-- 阅读全文
posted @ 2021-08-20 15:56 只要不兔的学习笔记 阅读(712) 评论(0) 推荐(0)
摘要: Spring Boot项目部署 目标:将Spring Boot项目使用maven指令打成jar包并运行测试 分析: 1.需要添加打包组件将项目中的资源、配置、依赖包打到一个jar包中 ;可以使用maven的package ; <build> <plugins> <plugin> <!-- 打jar包 阅读全文
posted @ 2021-08-20 01:57 只要不兔的学习笔记 阅读(156) 评论(0) 推荐(0)
摘要: Spring Boot整合redis 在Spring Boot项目中使用Junit测试RedisTemplate的使用 分析: 1.添加启动器依赖: spring-boot-starter-data-redis <dependency> <groupId>org.springframework.bo 阅读全文
posted @ 2021-08-20 01:30 只要不兔的学习笔记 阅读(1175) 评论(0) 推荐(0)