# springboot-learn **Repository Path**: asdsix/springboot-learn ## Basic Information - **Project Name**: springboot-learn - **Description**: springboot learn - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-21 - **Last Updated**: 2020-12-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 1.girl 入门基本配置 ### 2.springboot-fileupload 文件上传:支持上传多个文件,支持图片回显 ### 3.springboot-poi poi导入导出excel,支持.xls、.xlsx格式 ### 4.springboot-mybatis-redis-swagger2 -

整合springboot、mybatis、redis、swagger2

-

配置druid监控慢sql、响应时长的接口 访问地址:http://localhost:8080/druid/login.html 用户名:admin 密码:admin
如图:https://ibb.co/cuSZoS

-

使用swagger2生成文档 访问地址:http://localhost:8080/swagger-ui.html
如图:https://ibb.co/ftEQv

-

使用PageHelper插件实现分页

-

使用logback记录日志

-

使用redis缓存数据

### 5.springboot-helloworld 测试war、jar包、jar包和配置文件依赖包分开打包三种部署方式,为springboot内置tomcat设置虚拟目录 ### 6.springboot-elasticsearch springboot整合elasticsearch,提供增删改查简单案例。(可参考慕课网学习视频:https://www.imooc.com/learn/889) ### 7.springboot-mail springboot异步发送邮件:支持发送简单文本、html页面、velocity模板 ### 8.springboot-thumbnail springboot-thumbnail: 压缩图片 ### 9.springboot-maven-multi springboot-maven-multi: springboot创建maven多模块项目 ### 10.springboot-dubbo springboot-dubbo: springboot整合dubbo ### 11.springboot-runner springboot-runner: springboot项目启动成功后执行一段代码的两种方式 方法一:实现ApplicationRunner接口 方法二:实现CommandLineRunner接口 当实现了多个接口时,可使用Order注解来指定执行顺序,值越小,先执行 参考资料:https://blog.csdn.net/zknxx/article/details/52196427 ### 12.springboot-rabbitmq springboot-rabbitmq: springboot整合rabbitmq 参考资料:https://juejin.im/post/59f194e06fb9a0451329ec53 ### 13.springboot-docker springboot-docker: 使用docker部署springboot 构建命令:mvn clean package -Dmaven.test.skip=true docker:build 参考资料:http://www.ityouknow.com/springboot/2018/03/19/spring-boot-docker.html ### 14.springboot-session-redis springboot-session-redis: springboot整合spring session和redis解决分布式session共享问题 可参考资料:https://www.cnblogs.com/zuidongfeng/p/10260897.html ### 15.springboot-http-client springboot-http-client: http-client 使用案例, 包括 GET、POST 表单提交,POST 提交 json 类型参数,文件上传 测试用例:HttpUtilTest ### 16.demo-spring-boot-starter demo-spring-boot-starter: 自定义 starter 示例 参考资料:https://juejin.im/entry/58d37630570c350058c2c15c#comment ### 17.springboot-distributed-lock springboot-distributed-lock: 分布式锁学习 常见实现方式: 1、mysql 2、zookeeper 3、redis 参考资料: https://mp.weixin.qq.com/s/7ze2v9HQH07rvYoNpUTmzw https://crossoverjie.top/2018/03/29/distributed-lock/distributed-lock-redis/ https://juejin.im/post/5bbb0d8df265da0abd3533a5#comment https://juejin.im/post/5ad1c89c51882555784e6578#heading-5 http://tao.he.cn/2019/02/03/%E5%88%86%E5%B8%83%E5%BC%8F%E9%94%81/ ### 18.springboot-elk springboot-elk: 使用elk收集日志 参考资料: https://juejin.im/post/5c78c66c6fb9a049e702cf3e#heading-4 ### 19.springboot-graceful-shutdown springboot-graceful-shutdown: springboot服务优雅关闭 参考资料: https://juejin.im/post/5b023d4c6fb9a07aa542988c http://cxytiandi.com/blog/detail/12919 https://www.jianshu.com/p/44ef43b282f0 ### 20.springboot-websocket springboot-websocket: springboot 集成websocket 代码来源于:https://github.com/callicoder/spring-boot-websocket-chat-demo 参考资料: https://juejin.im/post/5ac8cd5c6fb9a028dd4e7ba6 https://www.xncoding.com/2017/07/15/spring/sb-websocket.html