![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
文章平均质量分 57
猴子大王??
这个作者很懒,什么都没留下…
展开
-
tkmapper
简介 1.整合tkmapper 添加tkmapper的依赖 <!--tkmapper--> <dependency> <groupId>tk.mybatis</groupId> <artifactId>mapper-spring-boot-starter</artifactId> <version>2....原创 2022-02-23 11:11:16 · 252 阅读 · 0 评论 -
基于SpringBoot的单元测试
3.5.1 添加依赖<!--test starter--><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId></dependency><dependency> <groupId>junit</gr原创 2022-02-22 11:06:20 · 134 阅读 · 0 评论 -
Springboot进行Maven打包报错:Failed to execute goal org.springframework.boot:spring-boot-maven-plugin
使用spring-boot整合多模块,但是在父pom中打包maven install时总会报错:Failed to execute goal org.springframework.boot:spring-boot-maven-plugin,导致错误的原因是父pom.xml中引入了如下配置:<build> <plugins> <plugin> <groupId>org.springframework.boot&l...转载 2022-02-22 09:50:49 · 11832 阅读 · 1 评论 -
3.2 创建Maven聚合工程
3.2.1 构建父工程fmmall 创建一个maven工程、packing设置为 pom 父工程继承继承spring-boot-starter-parent <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...原创 2022-02-22 09:30:03 · 229 阅读 · 0 评论 -
整合Mybatis
1、上一篇学习了服务提供者provider,但是并不是单单就学习了服务提供者。中间还穿插使用了Hikari数据源和spring cloud整合mybatis。但是上篇使用mybatis时还是沿用了老的方式,需要配置mapper对应的xml文件。先来看看上篇使用mybatis的主要步骤一、 pom.xml文件引用<dependency> <groupId>org.mybatis</groupId> <artifac原创 2022-02-21 19:01:44 · 207 阅读 · 0 评论