随笔 - 835  文章 - 1 评论 - 40 阅读 - 102万
< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

随笔分类 -  spring boots

分布式事务( XA) -- seata eurake springboot mysql (1.4.2)
摘要:官网文档: https://seata.io/zh-cn/docs/user/configurations.html官网示例代码: https://github.com/seata/seata-samples 1. 下载 : https://github.com/seata/seata/releas 阅读全文
posted @ 2022-07-29 18:58 lshan 阅读(189) 评论(0) 推荐(0) 编辑
springboot2.1.3配置sftp,自定义sftp连接池(转)
摘要:原文: https://blog.csdn.net/qq_35433926/article/details/91880345 springboot2.1.3配置sftp,自定义sftp连接池 项目地址 maven依赖 application.yml配置 SftpProperties sftp连接工厂 阅读全文
posted @ 2021-08-24 14:54 lshan 阅读(1859) 评论(0) 推荐(0) 编辑
Spring Boot配置 mongo db 连接池 mongo (配置多数据源)
该文被密码保护。
posted @ 2020-04-15 15:43 lshan 阅读(5) 评论(0) 推荐(0) 编辑
自定义注解
摘要:参考待整理:https://www.cnblogs.com/yzykkpl/p/10356258.html 获取注解 你需要通过反射来获取运行时注解,可以从 Package、Class、Field、Method...上面获取,基本方法都一样,几个常见的方法如下: /** * 获取指定类型的注解 */ 阅读全文
posted @ 2019-06-06 17:22 lshan 阅读(147) 评论(0) 推荐(0) 编辑
RestTemplate的异步使用
摘要:参考:https://blog.csdn.net/yezhuanxu/article/details/53643248 支持异步调用AsyncRestTemplate post请求如何自定义header @RequestMapping("/headerApi")//模拟远程的restful API 阅读全文
posted @ 2019-02-14 16:19 lshan 阅读(3188) 评论(0) 推荐(0) 编辑
多数据源springboot-jta-atomikos
摘要:参考: https://github.com/classloader/springboot-jta-atomikos-demo 參考:二 :建议参考 https://blog.csdn.net/a510835147/article/details/75675311 <dependency> <gro 阅读全文
posted @ 2018-11-15 13:58 lshan 阅读(1301) 评论(0) 推荐(0) 编辑
spring boot 整合 (全)
摘要:参考: https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples 阅读全文
posted @ 2018-11-07 17:40 lshan 阅读(115) 评论(0) 推荐(0) 编辑
springboot email 中常量值 配置 mailUtils
摘要:添加样式def addMailFormt(content): eheader="<p><b><strong style=\"color:red\">SeaNotification</strong></b></p><br>" efoot="<font color=\"#993300\"> <br> < 阅读全文
posted @ 2018-09-27 17:35 lshan 阅读(287) 评论(0) 推荐(0) 编辑
SpringBoot Session 管理及集群管理
摘要:1.配置session的超时时间 : 在application.prooperties中 server.session.timeout = 600 //以秒为单位,默认最少一分钟 2.配置集群管理session:spring.session.store-type = redis; 支持类型 3. 配 阅读全文
posted @ 2018-09-02 19:43 lshan 阅读(2118) 评论(0) 推荐(0) 编辑
SpringFox swagger2 and SpringFox swagger2 UI 接口文档生成与查看
摘要:依赖: 使用:在你要生成接口处加上注解@EnableSwagger2 ,此处是整个项目都要,不建议这么玩, 建议加在controller上 自定义标题:配置:(这个可以不配置) 方法描述: 在方法上加上 @ApiOperation 效果: 参数描述:1. 参数是 包装类 或者模型 如PartDO 在 阅读全文
posted @ 2018-09-01 18:59 lshan 阅读(7265) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示