# spring_boot **Repository Path**: KiplingGitee/spring_boot ## Basic Information - **Project Name**: spring_boot - **Description**: Spring Boot 使用总结 和 demo。 如果您觉得本代码对您有所帮助,请点击页面右上方"Star" - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-08-19 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 说明 - 博客[IntelliJ IDEA工具 - 使用IntelliJ IDEA导入Github工程](http://blog.csdn.net/hry2015/article/details/77984399): 本博客的代码全部存储在Github在,为了方便大家在本地创建工程,本博客演示如何从Github中加载代码到本地工程中以及加载tag分支代码到本地工程中 # 更新说明 - 2018-07-30 博客[Spring Boot系列22 Spring Websocket实现websocket集群方案的Demo](https://blog.csdn.net/hry2015/article/details/81290941)对应的git代码为[tagv0.24](https://github.com/hryou0922/spring_boot/tree/v0.24/mvc/src/main/java/com/hry/spring/mvc/websocket/cluster) - 2018-07-19 博客[Spring Boot系列20 Spring Websocket实现向指定的用户发送消息](https://blog.csdn.net/hry2015/article/details/81123549)对应的git代码为[tagv0.23](https://github.com/hryou0922/spring_boot/tree/v0.23/mvc/src/main/java/com/hry/spring/mvc/websocket/sendtouser) - 2018-05-08 博客[Spring Boot系列十九 Spring boot集成 swagger](https://blog.csdn.net/hry2015/article/details/80614315)对应的git代码为[tagv0.22](https://github.com/hryou0922/spring_boot/tree/v0.22/swagger/src/main/java/com/hry/swagger) - 2018-05-08 博客[Spring Boot系列十八 Spring AOP + 注解实现统一注解](https://blog.csdn.net/hry2015/article/details/80244765)对应的git代码为[tagv0.21](https://github.com/hryou0922/spring_boot/tree/v0.21/mvc/src/main/java/com/hry/spring/mvc/aop/log) - 2018-04-07 博客[Spring Boot系列十七 Spring Boot 集成 websocket,使用RabbitMQ做为消息代理](https://blog.csdn.net/hry2015/article/details/79838194)对应的git代码为[tagv0.20](https://github.com/hryou0922/spring_boot/tree/v0.20/mvc/src/main/java/com/hry/spring/mvc/websocket/rabbitmq) - 2018-04-05 博客[Spring Boot系列十六 WebSocket简介和spring boot集成简单消息代理](https://blog.csdn.net/hry2015/article/details/79829616)对应的git代码为[tagv0.19](https://github.com/hryou0922/spring_boot/tree/v0.19/mvc/src/main/java/com/hry/spring/mvc/websocket/simple) - 2018-04-04 修改整个工程结构,将工程由平行目录结构修改为父子目录结构, 可以简化服务的搭建和代码的上传 - 2018-03-15 博客[Spring Boot系列十四 Spring boot使用spring validation实现对Rest请求的数据进行校验](http://blog.csdn.net/hry2015/article/details/79572713)对应的git代码为[tagv0.18](https://github.com/hryou0922/spring_boot/tree/v0.18/mvc/src/main/java/com/hry/spring/mvc/validation) - 2018-03-13 博客[Spring Boot系列十三 Spring Boot集成RabbitMQ](http://blog.csdn.net/hry2015/article/details/79545157)对应的git代码为[tagv0.17](https://github.com/hryou0922/spring_boot/tree/v0.17/rabbitmq/src/main/java/com/hry/spring/rabbitmq/boot) - 2018-03-01 博客[中间件系列十 消费者端的消息确认机制](http://blog.csdn.net/hry2015/article/details/79416540)对应的git代码为[tagv0.15](https://github.com/hryou0922/spring_boot/tree/v0.15/rabbitmq/src/main/java/com/hry/spring/rabbitmq/advanced/consumerconfirm) - 2018-02-06 博客[中间件系列九 RabbmtiMQ 通过wireshark抓包学习AMQP协议](http://blog.csdn.net/hry2015/article/details/79273772)对应的git代码为[tagv0.14](https://github.com/hryou0922/spring_boot/tree/v0.14/rabbitmq/src/main/java/com/hry/spring/rabbitmq/advanced/publisherconfirm) - 2018-02-01 博客[Spring Boot系列十二 Spring Boot通过redis实现分布式系统的Session同步及从源码分析其原理](http://blog.csdn.net/hry2015/article/details/79232348)对应的git代码为[tagv0.13](https://github.com/hryou0922/spring_boot/tree/v0.13/redis/src/main/java/com/hry/spring/redis/session) - 2018-01-29 博客[中间件系列八 RabbitMQ之实现RPC模式](http://blog.csdn.net/hry2015/article/details/79199294)对应的git代码为[tagv0.12](https://github.com/hryou0922/spring_boot/tree/v0.12/rabbitmq/src/main/java/com/hry/spring/rabbitmq/basic/rpc) - 2018-01-28 博客[中间件系列七 RabbitMQ之header exchange(头交换机)用法](http://blog.csdn.net/hry2015/article/details/79188615)对应的git代码为[tagv0.11](https://github.com/hryou0922/spring_boot/tree/v0.11/rabbitmq/src/main/java/com/hry/spring/rabbitmq/basic/header) - 2018-01-27 博客[中间件系列六 RabbitMQ之Topic exchange 用法](http://blog.csdn.net/hry2015/article/details/79183941)对应的git代码为[tagv0.10](https://github.com/hryou0922/spring_boot/tree/v0.10/rabbitmq/src/main/java/com/hry/spring/rabbitmq/basic/topics) - 2018-01-25 博客[中间件系列五 RabbitMQ之Direct exchange(直连交换机)和路由](http://blog.csdn.net/hry2015/article/details/79165734)对应的git代码为[tagv0.9](https://github.com/hryou0922/spring_boot/tree/v0.9/rabbitmq/src/main/java/com/hry/spring/rabbitmq/basic/routing) - 2018-01-24 博客[中间件系列四 RabbitMQ之Fanout exchange(扇型交换机)之发布订阅](http://blog.csdn.net/hry2015/article/details/79144038)对应的git代码为[tagv0.8](https://github.com/hryou0922/spring_boot/tree/v0.8/rabbitmq/src/main/java/com/hry/spring/rabbitmq/basic/publishsubscribe) - 2018-01-16 博客[中间件系列二 RabbitMQ之消息持久性、确认机制、拒绝、预取数量、分配策略](http://blog.csdn.net/hry2015/article/details/79078312)对应的git代码为[tagv0.7](https://github.com/hryou0922/spring_boot/tree/v0.7/rabbitmq/src/main/java/com/hry/spring/rabbitmq/basic/workqueues) - 2018-01-11 博客[中间件系列一 RabbitMQ之安装和Hello World Demo](http://blog.csdn.net/hry2015/article/details/79016854)对应的git代码为[tagv0.6](https://github.com/hryou0922/spring_boot/tree/v0.6/rabbitmq/src/main/java/com/hry/spring/rabbitmq/basic/helloworld) - 2017-12-20 博客[Spring Boot系列十 spring mvc全局异常处理](http://blog.csdn.net/hry2015/article/details/78806295)对应的git代码为[tagv0.5](https://github.com/hryou0922/spring_boot/tree/v0.5/mvc/src/main/java/com/hry/spring/mvc/exceptionhandling) - 2017-11-12 博客[Spring Boot系列九 spring mvc的@RequestMapping支持的方法参数类型和返回类型 ](http://blog.csdn.net/hry2015/article/details/78513412)对应的git代码为[tagv0.4](https://github.com/hryou0922/spring_boot/tree/v0.4/mvc/src/main/java/com/hry/spring/mvc) - 2017-11-06 博客[Spring Boot系列八 spring boot集成jsp、restful接口、springmvc基本功能](http://blog.csdn.net/hry2015/article/details/78462512)对应的git代码为[tagv0.3](https://github.com/hryou0922/spring_boot/tree/v0.3/mvc/src/main/java/com/hry/spring/mvc) - 2017-09-17 博客[ Spring Boot系列六 Spring boot集成mybatis、分页插件pagehelper](http://blog.csdn.net/hry2015/article/details/78010502)对应的git代码为[tagv0.2](https://github.com/hryou0922/spring_boot/tree/v0.2) - 2017-09-11 20170911之前的博客里的代码,为了保证能够正确运行,请使用[git代码tagv0.1](https://github.com/hryou0922/spring_boot/tree/v0.1) - 2017-07-27 博客[Redis系列四 - 在springboot中通过Lua脚本在redis中实现定时任务](http://blog.csdn.net/hry2015/article/details/76167016)对应[git代码tag v0.1](https://github.com/hryou0922/spring_boot/tree/v0.1/redis/src/main/java/com/hry/spring/redis/timedtask) - 2017-07-19 博客[Redis系列三 - Spring boot如何使用redis做缓存及缓存注解的用法总结](http://blog.csdn.net/hry2015/article/details/75451705)对应[git代码tag v0.1](https://github.com/hryou0922/spring_boot/tree/v0.1/redis/src/main/java/com/hry/spring/redis/cache) - 2017-07-10 博客[Redis系列二 - 通过redis命令和lua实现分布式锁](http://blog.csdn.net/hry2015/article/details/74937375)对应[git代码tag v0.1](https://github.com/hryou0922/spring_boot/tree/v0.1/redis/src/main/java/com/hry/spring/redis/distributedlock) - 2017-07-03 博客[Redis系列一 - springboot 集成 redis Demo和原理](http://blog.csdn.net/hry2015/article/details/74276423)对应[git代码tag v0.1](https://github.com/hryou0922/spring_boot/tree/v0.1/redis/src/main/java/com/hry/spring/redis/simple) - 2017-05-17 博客[Spring Boot系列五 Spring @Value 属性注入使用总结二](http://blog.csdn.net/hry2015/article/details/72453920)对应[git代码tag v0.1](https://github.com/hryou0922/spring_boot/tree/v0.1/core/src/main/java/com/hry/spring) - 2017-05-16 博客[Spring Boot系列四 Spring @Value 属性注入使用总结一](http://blog.csdn.net/hry2015/article/details/72353994)对应[git代码tag v0.1](https://github.com/hryou0922/spring_boot/tree/v0.1/core/src/main/java/com/hry/spring/configinject) - 2017-04-06 博客[Spring Boot系列三 Spring @EnableScheduling 定时任务用法总结](http://blog.csdn.net/hry2015/article/details/69445289)对应[git代码tag v0.1](https://github.com/hryou0922/spring_boot/tree/v0.1/taskExecutionAndScheduling/src/main/java/com/hry/spring/schedule) - 2017-03-28 博客[Spring Boot系列二 Spring @Async异步线程池用法总结](http://blog.csdn.net/hry2015/article/details/67640534)对应[git代码tag v0.1](https://github.com/hryou0922/spring_boot/tree/v0.1/taskExecutionAndScheduling/src/main/java/com/hry/spring/async) - 2017-02-26 博客[Spring Boot系列一 spring boot 集成 slf4j 和 logback](http://blog.csdn.net/hry2015/article/details/57410727)对应[git代码tag v0.1](https://github.com/hryou0922/spring_boot/tree/v0.1/log) # 工程说明 ## core 存储常用的spring核心用法 - com.hry.spring.configinject:@Value注入用法总结 - com.hry.spring.spel.multiway:xml、注解和Programing 3种方式使用Spring EL ## docker - 创建自己的docker的用法 ## grpc - com.hry.spring.grpc - simple: hello world - stream: 官方例子 - util: 工具类 ## log - 演示logback+sl4j的用法 ## mvc - 演示mvc的用法 - com.hry.spring.mvc - websocket: websocket用法 - simple: [Spring Boot系列十六 WebSocket简介和spring boot集成简单消息代理](https://blog.csdn.net/hry2015/article/details/79829616) - rabbitmq: [Spring Boot系列十七 Spring Boot 集成 websocket,使用RabbitMQ做为消息代理](https://blog.csdn.net/hry2015/article/details/79838194) - sendtouser: [Spring Boot系列20 Spring Websocket实现向指定的用户发送消息](https://blog.csdn.net/hry2015/article/details/81123549) ## mybatis - mybatis的用法 - 演示pagehlper在spring boot中的用法 - 演示spring boot集成mybatis - 演示Model转化为dto ## protobuf - protobuf的用法总结 ## rabbitmq - rabbitmq的用法总结 ## redis: redis的用法 - com.hry.spring.redis - simple: 简单redis集成spring boot; redis执行lua脚本 - distributedlock: 分布锁实现 http://192.168.188.6:8080/distributeLock - cache: redis做为缓存 - timedtask: 通过redis处理定时任务 1. 简单定时任务 2. 失败重推 ## taskExecutionAndScheduling: 定时任务,异步任务 ## swagger - swagger用法demo - swagger访问地址:http://127.0.0.1:8080/swagger-ui.html ## thymeleaf - com.hry.spring - ctl: 第一个demo: http://localhost:8080/simple - expressions: 标准表达式,加载外部属性文件,复杂对象(成员变量是对象,list,map),web对象 - http://localhost:8080/expressions/simple - http://localhost:8080/expressions/complex?id=112 - http://localhost:8080/expressions/url - http://localhost:8080/expressions/utility - programming:Simple conditionals: “if” and “unless”;Iteration;Switch statements - http://localhost:8080/programming/programming - template: 定义和引用模板: th:include 和 th:replace, th:remove 删除代码 - http://localhost:8080/template/template - 代处理: - Setting Attribute Values:Appending and prepending; Fixed-value boolean attributes;