# springboot-cli **Repository Path**: zszyncode/springboot-cli ## Basic Information - **Project Name**: springboot-cli - **Description**: 一个用于SpringBoot 快速搭建常用功能的脚手架以及Demo. - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2025-02-20 - **Last Updated**: 2025-02-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 参考链接 #### Group ID > `com.cli` #### 文件编码 > `yml/properties`等配置文件如果出现乱码的情况请将编码设置为GBK编码格式 #### 1. 分布式锁 - [SpringBoot进阶教程(五十五)整合Redis之分布式锁 v阅读目录](https://www.cnblogs.com/toutou/archive/2019/02/11/redis_lock.html) - []() #### 2. zxing-demo 二维码的生成与展示 - [利用Spring Boot+zxing,生成二维码还能这么简单](https://mp.weixin.qq.com/s/e59SJFP87OX8pOIrFGMAEw) #### 3. unified-data-format 统一异常处理与数据返回格式 > 可以有两种设计 > - 正常请求返回一种数据格式,错误请求返回一种数据格式 > - 正常请求和错误请求返回同一种数据格式 - [Spring Boot 无侵入式 实现API接口统一JSON格式返回](https://mp.weixin.qq.com/s?__biz=MzU2MTI4MjI0MQ==&mid=2247493612&idx=1&sn=9437e2c2ced7e91df1500915ec88f7b3&chksm=fc798a42cb0e0354c57741c973be11ccd8db1bdfa8179497388cdec04eba65e2059d5f908cfc&mpshare=1&scene=24&srcid=0902YYojkyEE4UJp5AnTm9ZB&sharer_sharetime=1599055450283&sharer_shareid=0c62ce0359ab0b4c93ed31d8ff14913a&key=a9d862817bf2fb7f5a43d371f865b31a203c993a8e8c0d4537f59fc39eb9d7aa3e591e4b83086224c03ac5ae1f783569a09d96fa919ab13a8c2fdef224a105a65a3cb0c449b2776e320a5eb85b63feb16253262635dd67ebee832ee9648c1ed24f58e11e4589762c9708fe2cb22088745bd66d446cfb57892cfd45e0677ce22a&ascene=14&uin=MjI5MDgzMTc4NA%3D%3D&devicetype=Windows+10+x64&version=6209051a&lang=zh_CN&exportkey=AeiRsxdtwRHmsB2P32c3amU%3D&pass_ticket=jBxNdnt%2Bk1dkjpENfrzTbE75PWepCgx4mujIz%2Fpiak7ueushnQo%2B9VUfJTxahGPU&wx_header=0) - [使用枚举简单封装一个优雅的 Spring Boot 全局异常处理!](https://mp.weixin.qq.com/s/Y4Q4yWRqKG_lw0GLUsY2qw) - [每天用SpringBoot,还不懂RESTful API返回统一数据格式是怎么实现的?](https://segmentfault.com/a/1190000020052492) #### 4. 实现ORC - [SpringBoot05:Spring Boot与Tesseract集成](http://blog.tyrival.com/posts/springboot-tesseract/) - [SpringBoot+Tess4j 实现牛逼的 OCR 识别工具](https://xie.infoq.cn/article/314a64e74f092e5f9d802adec) - [java 读取文件——按照行取出(使用BufferedReader和一次将数据保存到内存两种实现方式)](https://www.cnblogs.com/0201zcr/p/5009975.html) - [Spring Boot(十七):使用 Spring Boot 上传文件](http://www.ityouknow.com/springboot/2018/01/12/spring-boot-upload-file.html) #### 5. SpringBoot整合RabbitMQ > `配置文件需要GBK编码才不会乱码` - []() #### 6. 接口幂等性 - [用 SpringBoot+Redis 解决海量重复提交问题](https://mp.weixin.qq.com/s/hfhFFbzLeaxdPulgseXMAw) - [Redis 客户端 Jedis、lettuce 和 Redisson 对比](https://www.cnblogs.com/54chensongxia/p/13815761.html) - [Redis详解 - SpringBoot整合Redis,RedisTemplate和注解两种方式的使用](https://segmentfault.com/a/1190000017057950) - [SpringBoot整合Redis及Redis工具类撰写](https://www.cnblogs.com/zeng1994/p/03303c805731afc9aa9c60dbbd32a323.html) #### 7. 自定义SpringBoot starter - [仅需4步,编写自己的Spring Boot Starter](https://zhuanlan.zhihu.com/p/367207752) - [尚硅谷雷神SpringBoot2零基础入门springboot全套完整版(spring boot2)](https://www.bilibili.com/video/BV19K4y1L7MT?p=16&spm_id_from=pageDriver) - [了解自动配置原理](https://www.yuque.com/atguigu/springboot/qb7hy2#0tCTs) #### 8. Kafka > `配置文件需要GB2312编码才不会乱码` #### 9. Netty Demo - [在SpringBoot中整合使用Netty框架 - 掘金](https://juejin.cn/post/6844904197129764871) #### 10. MDC全链路日志跟踪 - [实战!SpringBoot+MDC实现全链路调用日志跟踪~ - 腾讯云开发者社区-腾讯云](https://cloud.tencent.com/developer/article/1925469) - [springboot2.x基础教程:日志配置 - 掘金](https://juejin.cn/post/6865287804675424264) - [SpringBoot2.x整合logback日志框架(2)—layout和MDC机制 - 简书](https://www.jianshu.com/p/8bf9235d5cab) - [SpringBoot2.x整合HandlerInterceptor拦截器(1-定义拦截器) - 简书](https://www.jianshu.com/p/8c7d60e2b21c) #### 11. SpringBoot整合ZooKeeper - [SpringBoot集成Curator实现Zookeeper基本操作 - 百里浅暮 - 博客园](https://www.cnblogs.com/xfeiyun/p/16185674.html) - [Springboot使用Curator 集成zk_springboot curator_提灯寻梦在南国的博客-CSDN博客](https://blog.csdn.net/weixin_38073885/article/details/123488143) - [Spring Boot 使用 ZkClient 操作 ZooKeeper_springboot 读取zk节点信息_一叶知秋V的博客-CSDN博客](https://blog.csdn.net/smartbetter/article/details/52881954) - [一文了解Zookeeper的Watcher机制 - 简书](https://www.jianshu.com/p/c68b6b241943)