# spring-boot-2.x-examples **Repository Path**: hwyhy/spring-boot-2.x-examples ## Basic Information - **Project Name**: spring-boot-2.x-examples - **Description**: Spring Boot 2.x code examples - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2018-08-19 - **Last Updated**: 2025-05-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # spring-boot-2.x-examples Spring Boot 2.x code examples 编写2.x版本以后的各种示例代码 [![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu) [![LICENSE](https://img.shields.io/badge/license-Anti%20996-blue.svg)](https://github.com/996icu/996.ICU/blob/master/LICENSE) ### 说明 统一基础运行环境: * JDK:1.8.0_111 * Maven:3.3.9 * Spring Boot:2.x 详细的说明请进入项目中查看,里面会配有项目的Markdown文档。 ### 目录: * [spring-boot-elasticsearch](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-elasticsearch):Elasticsearch搜索引擎基本使用 * [spring-boot-solr](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-solr):solr搜索引擎基本使用 * [spring-boot-docker-fsatdfs](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-docker-fsatdfs):FastDFS文件系统,使用docker构建环境 * [spring-boot-go-fastdfs](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-go-fastdfs):go-FastDFS文件系统 * [spring-boot-kafka](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-kafka):kafka消息队列 * [spring-boot-rabbitmq](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-rabbitmq):rabbitmq消息队列 * [spring-boot-activemq](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-activemq):activemq消息队列 * [spring-boot-swagger](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-swagger):Swagger是一款RESTFUL接口的文档在线自动生成+功能测试功能软件 * [spring-boot-webflux](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-webflux):Spring WebFlux是基于注解实现的响应式流API接口 * [spring-boot-webflux-api](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-webflux-api):Spring WebFlux是基于响应式流编写的API接口 * [spring-boot-webflux-annotation-api](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-webflux-annotation-api):Spring WebFlux是基于响应式流编写的API接口,使用注解方式实现 * [spring-boot-webflux-websocket](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-webflux-websocket):基于Spring WebFlux响应式流编写的WebSocket * [spring-boot-dubbo-zookeeper](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-dubbo-zookeeper):整合dubbo+zookeeper的分布式项目实例 * [spring-boot-dubbo-zookeeper-hystrix](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-dubbo-zookeeper-hystrix):使用hystrix实现分布式项目的服务降级(XML版本) * [spring-boot-dubbo-zookeeper-hystrix-annotation](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-dubbo-zookeeper-hystrix-annotation):使用hystrix实现分布式项目的服务降级(注解版本) * [spring-boot-thymeleaf](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-thymeleaf):Thymeleaf模板引擎 * [spring-boot-freemarker](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-freemarker):FreeMarker模板引擎 * [spring-boot-beetl](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-beetl):beetl模板引擎 * [spring-boot-exception](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-exception):自定的统一异常处理 * [spring-boot-mongodb](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-mongodb):MongoDB是一个基于分布式文件存储的数据库 * [spring-boot-webflux-mongodb](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-webflux-mongodb):基于Spring WebFlux响应式流方式操作MongoDB数据库 * [spring-boot-mybatis](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-mybatis):MyBatis 是一款优秀的持久层框架,使用mybatis访问数据库 * [spring-boot-mybatis-mutiple-datasource](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-mybatis-mutiple-datasource):通过mybatis配置多数据源方式操作数据库 * [spring-boot-mybatis-plus](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-mybatis-plus):通过增强型mybatis操作数据库,可以省略大部分CURD * [spring-boot-current-mapper](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-current-mapper):通用mapper,基于mybatis,极大的方便操作数据库,甚至可以自定义动态生成SQL * [spring-boot-mybatis-sqlite](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-mybatis-sqlite):通过mybatis操作sqlite数据库 * [spring-boot-anima](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-anima):通用数据库操作框架,支持MySQL、SQLite、H2、Oracle、SqlServer等数据库 * [spring-boot-beatlsql](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-beatlsql):BeetSql是一个全功能DAO工具,目前跨数据库支持mysql,postgres,oracle,sqlserver,h2,sqllite,DB2 * [spring-boot-mybatis-druid](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-mybatis-druid):DRUID是阿里巴巴开源平台上一个数据库连接池实现 * [spring-boot-mybatis-hikari](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-mybatis-hikari):HiKariCP是数据库连接池,官方推荐使用,号称性能最好 * [spring-boot-sql-interceptor](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-sql-interceptor):自定义SQL拦截器,打印SQL语句和执行时间 * [spring-boot-jpa](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-jpa):JPA是供应商JDBCjdbc是一组规范,用于操作方便的数据库 * [spring-boot-pagehelper](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-pagehelper):PageHelper是一个开源的分页插件,可以非常方便的进行数据库查询分页操作 * [spring-boot-security](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-security):Spring Security是一个基于Spring的企业应用系统提供声明式的安全访问控制解决方案的安全框架 * [spring-boot-email](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-email):通过简单配置发送邮件,还可以自定义邮件模板 * [spring-boot-aop-log](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-aop-log):通过spring aop拦截我们web项目请求的日志,非常实用 * [spring-boot-aop-annotation-log](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-aop-annotation-log):通过spring 注解aop拦截我们web项目请求的日志 * [spring-boot-log](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-log):log彩色日志系统,可以打印漂亮的彩色日志 * [spring-boot-security](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-security):Spring Security是一个基于Spring的企业应用系统提供声明式的安全访问控制解决方案的安全框架 * [spring-boot-redis](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-redis):Redis是一个可基于内存亦可持久化的日志型、Key-Value数据库 * [spring-boot-redis-pub-sub](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-redis-pub-sub):通过Redis实现发布订阅服务 * [spring-boot-redis-geo](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-redis-geo):通过Redis实现的地理信息查询 * [spring-boot-redisson-lock](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-redisson-lock):基于Redis+Redisson实现的高并发锁 * [spring-boot-websocket](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-websocket):WebSocket聊天小项目 * [spring-boot-session-token](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-session-token):基于Redis实现的用户登录网站和自动超时下线 * [spring-boot-memcached](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-memcached):Memcached 是一个高性能的分布式内存对象缓存系统,实现了它的基本操作 * [spring-boot-ehcach](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-ehcach):EhCache 是一个纯Java的进程内缓存框架 * [spring-boot-war](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-war) :把Spring Boot项目打成war发布(默认是jar包) * [spring-boot-scheduled](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-scheduled):scheduled是Spring Boot自带的小型定时任务 * [spring-boot-quartz](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-quartz):Quartz 是一个开源作业调度框架,这里编写了它使用实例 * [spring-boot-elastic-job](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-elastic-job):Elastic-job 是由当当网基于quartz 二次开发之后的分布式调度解决方案 * [spring-boot-echarts](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-echarts):百度的商业产品图表库,通过简单的代码可以画出炫酷的图表 * [spring-boot-webmagic](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-webmagic):基于WebMagic爬虫框架编写的爬虫,爬取伯乐在线和拉钩的数据 * [spring-boot-system](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-system):系统基本信息监控 * [spring-boot-jetty](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-jetty):jetty容器 * [spring-boot-tomcat-jsp](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-tomcat-jsp):基于Tomcat容器运行的jsp页面 * [spring-boot-jetty-jsp](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-jetty-jsp):基于Jetty容器运行的jsp页面 * [spring-boot-xml](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-xml):使用xml配置代替配置文件 * [spring-boot-emoji](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-emoji):emoji表情 * [spring-boot-contiperf](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-contiperf):轻量级的单元测试工具 * [spring-boot-https](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-https):配置跳转https * [spring-boot-excel](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-excel):excel简单的操作工具 * [spring-boot-auto-code](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-auto-code):强大的代码生成器,极少的配置可生成 单表、一对一、一对多、多对多代码,支持无限级联 * [spring-boot-auto-code-ui](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-auto-code-ui):强大的代码生成器,通过界面可生成 单表、一对一、一对多、多对多代码,支持无限级联 * [spring-boot-async](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-async):异步执行我们的接口 * [spring-boot-sm](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-sm):SM免费图床 * [spring-boot-gitee-login](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-gitee-login):通过gitee(码云)授权登录我们的应用 * [spring-boot-github-login](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-github-login):通过GitHub授权登录我们的应用 * [spring-boot-dingtalk-login](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-dingtalk-login):通过钉钉扫码授权登录我们的应用 * [spring-boot-weibo-login](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-weibo-login):通过新浪微博授权登录我们的应用 * [spring-boot-tencentcloud](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-tencentcloud):通过腾讯云授权登录我们的应用 * [spring-boot-oschina-login](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-oschina-login):通过开源中国授权登录我们的应用 * [spring-boot-current-limiting](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-current-limiting):基于令牌桶算法和漏桶算法实现的纳秒级分布式无锁限流 * [spring-boot-sharding-sphere](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-sharding-sphere):分布式数据库中间件解决方案,标准化的数据分片、分布式事务和数据库治理功能 * [spring-boot-session-redis](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-session-redis):使用spring session实现分布式应用的session共享 * [spring-boot-storm](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-storm):使用Storm进行订单的实时计算 * [spring-boot-hbase](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-hbase):HBase的CRUD * [spring-boot-psql](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-psql):PostgreSQL数据库操作 * [spring-boot-presto](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-presto):presto分布式SQL交互式查询引擎 * [spring-boot-version](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-version):web服务版本接口控制 * [spring-boot-redshift](https://github.com/HWYWL/spring-boot-2.x-examples/tree/master/spring-boot-redshift):Amazon Redshift 是一种快速、完全托管的 PB 级数据仓库服务 ### 感谢 - 例程还有不足之处,请大家Issues ヾ(๑╹◡╹)ノ" - 我那么可爱你不点个star吗 φ(>ω<*) ### 问题建议 - 联系我的邮箱:ilovey_hwy@163.com - 我的博客:https://www.hwy.ac.cn - GitHub:https://github.com/HWYWL