Sping Boot入门到实战之实战篇(二):一些常用功能的Spring Boot Starters
16lz
2021-01-22
包含功能
- 阿里云消息服务MNS
- 阿里云消息队列服务(即时消息、延迟消息、事务消息)
- AOP日志
- 基于MyBatis通用Mapper及DRUID的数据库访问
- dubbo支持
- 错误处理
- 七牛图片服务
- redis多连接池支持
- swagger配置
- 跨域配置
源码地址:https://github.com/ronwxy/base-spring-boot (如果觉得有帮助,请帮忙给个star)
主要版本
- springboot 1.5.13.RELEASE
- spring 4.3.17.RELEASE
1.在pom.xml文件中引入依赖管理
<dependencyManagement>
<dependencies> <dependency> <groupId>com.springboot.base</groupId> <artifactId>spring-boot-dependencies</artifactId> <version>1.2-SNAPSHOT</version> <scope>import</scope> <type>pom</type> </dependency> </dependencies> </dependencyManagement>