摘要: SpringBoot单元测试与Idea热部署、读取配置文件 SpringbootData中实现JPA 1、整合mybatis 2、整合jpa 3、整合redis 1、springboot整合mybatis(注解与配置文件) 1、引入pom文件 <dependency> <groupId>org.my 阅读全文
posted @ 2020-06-30 13:00 albert飞的博客 阅读(429) 评论(0) 推荐(0) 编辑
摘要: Springboot整合mybtis(注解与xml)、jpa、reids springDataJpa使用 0、引入依赖jar <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0. 阅读全文
posted @ 2020-06-30 12:14 albert飞的博客 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 自定义starter需要三步走,定义对象类,定义配置类,定义META-INF下spring.factories文件,指定自动配置类 目录结构如下 1、定义对象类 package city.albert.entity; import org.springframework.boot.context.p 阅读全文
posted @ 2020-06-30 11:01 albert飞的博客 阅读(297) 评论(0) 推荐(0) 编辑