{"id":13819487,"url":"https://github.com/hemin1003/spring-boot-study","last_synced_at":"2025-04-04T12:09:09.955Z","repository":{"id":20836098,"uuid":"72393402","full_name":"hemin1003/spring-boot-study","owner":"hemin1003","description":"SpringBoot框架源码实战（已更新到springboot2版本实现）~基本用法，Rest，Controller，事件监听，连接数据库MySQL，jpa，redis集成，mybatis集成（声明式与xml两种方式~对应的添删查改功能），日志处理，devtools配置，拦截器用法，资源配置读取，测试集成，Web层实现请求映射，security安全验证，rabbitMq集成，kafka集成，分布式id生成器等。项目实战：https://github.com/hemin1003/yfax-parent 已投入生产线上使用","archived":false,"fork":false,"pushed_at":"2022-06-21T01:07:46.000Z","size":3208,"stargazers_count":567,"open_issues_count":10,"forks_count":387,"subscribers_count":33,"default_branch":"master","last_synced_at":"2025-03-28T11:09:33.580Z","etag":null,"topics":["kafka","mybatis","oauth2","redis","restful-api","spring-boot","springsecurity"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hemin1003.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-31T02:58:07.000Z","updated_at":"2025-02-27T07:46:34.000Z","dependencies_parsed_at":"2022-08-31T22:00:54.951Z","dependency_job_id":null,"html_url":"https://github.com/hemin1003/spring-boot-study","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemin1003%2Fspring-boot-study","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemin1003%2Fspring-boot-study/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemin1003%2Fspring-boot-study/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemin1003%2Fspring-boot-study/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hemin1003","download_url":"https://codeload.github.com/hemin1003/spring-boot-study/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247174423,"owners_count":20896078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kafka","mybatis","oauth2","redis","restful-api","spring-boot","springsecurity"],"created_at":"2024-08-04T08:00:49.057Z","updated_at":"2025-04-04T12:09:09.936Z","avatar_url":"https://github.com/hemin1003.png","language":"Java","readme":"# springboot学习实战\n\n## 全新内容\n\n新增全新springboot2的框架技术点（代码位于当前仓库的spring-boot2-study目录下）\n\n基于springboot 2.0.6.RELEASE版本实现的代码演示集合，欢迎star/fork\n\n[新仓库代码位置](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent)\n\n### 新子项目列表\n\n [一、sprint-boot2-autotest](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-autotest)\n\n介绍Springboot2【自动化单元测试】的用法：\n\n1. 如何编写测试案例，具体用法有哪些\n2. 单元测试场景：四种业务场景，例如如何进行接口api测试，服务层代码测试，MockMvc用法等\n\n\n[二、spring-boot2-interceptor](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-interceptor)\n\n介绍Springboot2【拦截器】的用法：\n\n1. 拦截器用法详细介绍\n2. 如何把服务层对象注入到拦截器中，调用相关方法\n3. 开启跨域访问功能\n\n\n[三、spring-boot2-rocketmq](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-rocketmq)\n\n介绍Springboot2【RocketMQ集成】的用法：\n\n1. 如何与springboot集成\n2. 如何建立连接，发送不同消息数据类型\n3. 如何订阅，且消费不同消息数据类型\n4. 场景案例分析\n\n\n[四、spring-boot2-schedule](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-schedule)\n\n介绍Springboot2【@scheduled定时器】的用法：\n\n1. 定时器计划用法介绍\n2. 开启并行多线程任务两种方式\n3. 场景案例分析\n\n\n[五、spring-boot2-tomcat](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-tomcat)\n\n介绍Springboot2【Tomcat容器自定义】的用法：\n\n1. Tomcat容器配置用法，使用.yml文件方式\n2. 设置tomcat的最大连接数和最大并发数\n3. Springboot1和Springboot2版本之间的差异用法\n\n\n[六、spring-boot2-mysql-mybatis-xml](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-mysql-mybatis-xml)\n\n介绍Springboot2【Mysql和Mybatis+XML用法详解】的用法：\n\n1. Mysql+Datasource集成\n2. Mybatis+XML用法详解\n\n\n[七、spring-boot2-mysql-multi-datasource](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-mysql-multi-datasource)\n\n介绍Springboot2【Mysql多数据源和Hikari用法详解】的用法：\n\n1. Mysql多数据源配置用法\n2. Hikari用法\n\n\n[八、spring-boot2-multi-resources](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-multi-resources)\n\n介绍Springboot2【多环境配置文件用法】的用法：\n\n1. 多环境配置文件用法\n\n[九、spring-boot2-docker](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-docker)\n\n介绍Springboot2【Docker集成+容器化部署详解-上篇】的用法：\n\n1. 使用Maven插件构建Docker镜像\n\n[十、spring-boot2-dockerfile](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-dockerfile)\n\n介绍Springboot2【Docker集成+容器化部署详解-下篇】的用法：\n\n1. 使用Dockerfile构建Docker镜像\n\n[十一、spring-boot2-redis](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-redis)\n\n介绍Springboot2【Redis分布式缓存服务集成】的用法：\n\n1. Redis集成，常用api用法\n2. 统一封装工具类（兼容解决中文乱码问题）\n\n[十二、spring-boot2-dubbo-provider](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-dubbo-provider)\n\n介绍Springboot2【Dubbo服务提供者、服务消费者整合/Zookeeper集成】的用法：\n\n1. Dubbo服务提供者、服务消费者整合/Zookeeper集成\n\n[服务提供者-源码](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-dubbo-provider)\n\n[服务消费者-源码](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-dubbo-consumer)\n\n[十三、spring-boot2-distributed-id](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-distributed-id)\n\n介绍Springboot2【全局唯一ID/分布式ID解决方案】的用法：\n\n1. 分布式ID解决方案\n\n[十四、spring-boot2-mysql-druid](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-mysql-druid)\n\n介绍Springboot2【Druid连接池集成】的用法：\n\n1. Druid连接池集成\n2. Druid Web界面用法\n\n[十五、spring-boot2-logback](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-logback)\n\n介绍Springboot2【Logback日志框架集成】的用法：\n\n1. Logback日志文件讲解说明\n\n[十六、spring-boot2-logback-elk](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-logback-elk)\n\n介绍Springboot2【ELK日志集成】的用法：\n\n1. ELK日志集成说明\n\n[十七、spring-boot2-logback-async](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-logback-async)\n\n介绍Springboot2【日志异步化处理用法】的用法：\n\n1. 日志异步化处理\n\n[十八、spring-boot2-exception](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-exception)\n\n介绍Springboot2【全局异常处理】的用法：\n\n1. 全局异常处理方式（自定义error请求返回结果）\n\n[十九、spring-boot2-api-protect](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-api-protect)\n\n介绍Springboot2【接口防刷机制】的用法：\n\n1. 接口防刷机制\n\n[二十、spring-boot2-distributed-lock](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-distributed-lock)\n\n介绍Springboot2【分布式锁用法】的用法：\n\n1. 分布式锁用法（基于Redis实现）\n\n[二十一、spring-boot2-mongodb](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-mongodb)\n\n介绍Springboot2【MongoDB集成】的用法：\n\n1. MongoDB集成用法\n\n[二十二、spring-boot2-oauth2-opaque-server](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-oauth2-opaque-server)\n\n介绍Springboot2【Oauth2+Token详细用法/SpringSecurity】的用法：\n\n[认证服务-源码](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-oauth2-opaque-server)\n\n[资源服务-源码](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-oauth2-opaque-resource)\n\n[二十三、spring-boot2-oauth2-jwt-server](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-oauth2-jwt-server)\n\n介绍Springboot2【Oauth2+JWT集成/SpringSecurity集成】的用法：\n\n[认证服务-源码](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-oauth2-jwt-server)\n\n[资源服务-源码](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-oauth2-jwt-resource)\n\n[二十四、spring-boot2-swagger](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-swagger)\n\n介绍Springboot2【Swagger集成用法】的用法：\n\n1. Swagger2集成用法\n\n[二十五、spring-boot2-mybatis-plus](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-mybatis-plus)\n\n介绍Springboot2【Mybatis-Plus快速开发框架用法】的用法：\n\n1. Mybatis-Plus快速开发框架用法\n\n[二十六、spring-boot2-swagger-req-params](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-swagger-req-params)\n\n介绍Springboot2【header/body接口参数+Swagger2集成用法】的用法：\n\n1. header/body接口参数+Swagger2集成用法\n2. 接口常用规范用法\n\n[二十七、spring-boot2-valid](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-valid)\n\n介绍Springboot2【@Valid注解用法详解+全局处理器Exception优雅处理参数验证用法】的用法：\n\n1. @Valid注解用法详解\n2. 全局处理器Exception优雅处理参数验证\n\n[二十八、spring-boot2-log-level](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-log-level)\n\n介绍Springboot2【动态修改日志输出级别】的用法：\n\n1. 动态修改日志输出级别用法\n\n[二十九、spring-boot2-wechat-pay](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-wechat-pay)\n\n介绍Springboot2【微信企业支付集成（五分钟集成）】的用法：\n\n1. 微信企业支付集成（五分钟集成）\n\n[三十、spring-boot2-alipay](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-alipay)\n\n介绍Springboot2【支付宝企业支付集成（五分钟集成）】的用法：\n\n1. 支付宝企业支付集成（五分钟集成）\n\n[三十一、spring-boot2-crawler](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-crawler)\n\n介绍Springboot2【爬虫框架集成】的用法：\n\n1. 爬虫框架集成\n\n[三十二、spring-boot2-mybatis-plus-multi-datasource](https://github.com/hemin1003/spring-boot-study/tree/master/spring-boot2-study/spring-boot2-parent/spring-boot2-mybatis-plus-multi-datasource)\n\n介绍Springboot2【MybatisPlus框架动态数据源用法】的用法：\n\n1. MybatisPlus框架动态数据源用法：支持多个DB，切换数据源\n\n\u003cbr/\u003e\n\n其他内容，持续更新中，敬请期待\n\n\u003cbr/\u003e\n\n## 该系列文档教程\n\n[SpringBoot系列教程-从入门到精通](https://hemin.blog.csdn.net/column/info/40170)\n\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n## 当前项目中包含的内容已是旧内容了，后续不再更新，知悉\n\n项目工具使用的是Eclipse mars+maven3+jdk1.8\n\n该项目中包含了以下内容：\n\n1. SpringBoot入门\n2. 基本用法\n3. Restful API\n4. Controller\n5. 事件监听\n6. 连接数据库MySQL jpa\n7. redis集成\n8. mybatis集成（声明式与xml两种方式~对应的添删查改功能）\n9. 日志处理\n10. Devtools配置\n11. 拦截器用法\n12. 资源配置读取\n13. 测试集成\n14. *.yml和*.properties配置文件说明等\n15. Web层实现请求映射\n16. security安全验证\n17. rabbitMq集成\n18. kafka集成\n19. rocketMq集成\n\n\u003cbr/\u003e\n\n# 应用到接口项目实战\n\n集成了拦截器，日志处理，mysql，mybatis, oauth2.0, spring secutity等功能，已投入生产线上使用\n\n接口API系统源码：https://github.com/hemin1003/yfax-parent\n\n\u003cbr/\u003e\n\n# 应用到后台管理系统实战\n\n基于SpringMVC4+EasyUI开发的后台管理系统，已投入生产线上使用\n\n体验系统地址：http://182.92.82.188:8280/manage/login.jsp\n\n体验账号/密码，test1001/a12345678\n\n后台系统源码：https://github.com/hemin1003/aylson-parent\n\n\u003cbr/\u003e\n\n# 应用到爬虫项目实战\n\n已实现能爬取腾讯，搜狐，今日头条（单独集成功能）等资讯内容，已投入生产线上使用\n\nJAVA爬虫框架源码：https://github.com/hemin1003/java-spider\n\n\u003cbr/\u003e\n\n## [关于我](http://heminit.com/about/)\n\n欢迎交流问题，可加我的个人QQ 469580884，或群号 751925591，一起探讨交流问题\n\n[我的博客地址](http://blog.csdn.net/hemin1003)\n\n[个人域名](http://heminit.com)\n\n\u003cbr/\u003e\n\n## 感谢\n如果觉得内容赞，您可以请我喝杯咖啡：\n\u003cbr/\u003e\n\u003cimg src=\"./pay/wechat.jpeg\" width=\"240px\" height=\"240px\" /\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\n\u003cimg src=\"./pay/alipay.jpeg\" width=\"240px\" height=\"240px\" /\u003e\n","funding_links":[],"categories":["SpringBoot开发实战"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemin1003%2Fspring-boot-study","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhemin1003%2Fspring-boot-study","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemin1003%2Fspring-boot-study/lists"}