# SpringBootDemo
**Repository Path**: foxyyy/SpringBootDemo
## Basic Information
- **Project Name**: SpringBootDemo
- **Description**: 本项目基于springboot最新版2.1.3RELEASE 收集记录学习spring的点点滴滴,通过每一个小demo,一步步进阶,逐步完善。
- **Primary Language**: Java
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 5
- **Created**: 2022-02-09
- **Last Updated**: 2022-02-09
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# SpringBootDemo
Spring Boot 学习示例
=========================





## 介绍
本项目基于springboot最新版2.1.3RELEASE
收集记录学习spring的点点滴滴,通过每一个小demo,一步步进阶,逐步完善。
实际开发过程很少碰到单模块的项目,所以该项目使用多模块开发,更贴合实际开发要求。
所以检出项目时请检出整个目录,而不是只检出某个demo。
当然考虑到多模块加载依赖问题,也可以只检出某个模块的demo,只是运行前请更改子模块pom.xml:
更改前:
```
com.mrcoder
SpringBootDemo
1.0.0
../pom.xml
```
更改后:
```
org.springframework.boot
spring-boot-starter-parent
2.1.3.RELEASE
```
## 子模块简写
sb =》 spring boot
sbm =》 spring boot mybatis
sbmp =》 spring boot mybatis plus
## 案例
- [sb-exception-validator](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-exception-validator):springboot 异常处理和数据验证
- [sb-helloword](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-helloword):IDEA创建spring boot项目
- [sb-jdbc](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-jdbc):jdbc访问mysql
- [sb-jdbc-multidb](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-jdbc-multidb):jdbc 多数据源案例
- [sb-jdbc-multidb-atomikos](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-jdbc-multidb-atomikos):jdbc+atomikos 多数据源分布式事务处理案例
- [sb-jpa](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-jpa):jpa方式访问mysql
- [sb-jpa-multidb](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-jpa-multidb):jpa 多数据源案例
- [sb-jpa-multidb-atomikos](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-jpa-multidb-atomikos):jpa+atomikos 多数据源分布式事务处理案例
- [sb-jsp](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-jsp):整合jsp
- [sb-mail](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-mail):整合mail
- [sb-redis-annotations](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-redis-annotations):注解操作redis
- [sb-redis-producer-consumer](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-redis-producer-consumer):redis实现生产者消费者
- [sb-redis-pubsub](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-redis-pubsub):redis实现发布订阅
- [sb-redis-template](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-redis-template):redisTemplate操作redis
- [sb-schedule](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-schedule):定时任务的三种方式(注解/单线程/多线程)
- [sb-swagger2](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-swagger2):swagger2使用案例
- [sb-thymeleaf](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-thymeleaf):springboot 结合thymeleaf模板使用
- [sbm-annotations](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sbm-annotations):注解方式访问mysql
- [sbm-common-mapper](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sbm-common-mapper):通用mapper的使用
- [sbm-excel](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sbm-excel):excel导入(反射实体);excel载入模版导出;
- [sbm-flyway](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sbm-flyway):集成flyway数据库版本管理工具
- [sbm-generator](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sbm-generator):mapper.xml方式操作数据,mybatis-generator-maven-plugin自动生成代码,集成pagehelper-spring-boot-starter分页控件来使用,附带非分页方式
- [sbm-multidb-annotations](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sbm-multidb-annotations):mybatis多数据源案例,使用注解方式操作mysql
- [sbm-multidb-xml](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sbm-multidb-xml):mybatis多数据源案例,使用mapper.xml方式操作mysql
- [sbm-multidb-xml-druid-atomikos](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sbm-multidb-xml-druid-atomikos):mybatis多数据源案例,集成druid监控,分布式事务管理atomikos
- [sbmp-multidb](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sbmp-multidb):mapper.xml方式访问mysql,mybatis-plus-generator自动生成代码,dynamic-datasource-spring-boot-starter多库切换
- [sbmp-multidb-druid](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sbmp-multidb-druid):注解方式访问mysql,spring-boot-starter-aop,druid多库切换
- [sb-alibaba-nacos](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-alibaba-nacos):nacos注册中心,配置中心的使用
- [sb-feign](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-feign):feign跨服务调用的演示
- [sb-xssfilter](https://github.com/MrCoderStack/SpringBootDemo/tree/master/sb-xssfilter):xssfilter的演示
## 如果觉得不错,请右上角 STAR 哦~