![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
开源资料
文章平均质量分 65
CS568591377
JAVA程序猿一枚,希望多交猿友
展开
-
SpringBoot下Redisson集群配置Sentinel问题记录
SENTINEL SENTINELS command returns less than 2 nodes or connection can't be established to some of them! At least two sentinels should be defined in Redis configuration. Set checkSentinelsList = false to avoid this check原创 2022-07-30 19:31:03 · 10313 阅读 · 2 评论 -
springboot2.0下手动读取yaml
-- test.ymlserver: port: 10086 servlet: session: timeout: 10spring: application: name: common-resource/** 测试输出 */public class CommonResourceApplicationTests { public static void main(String[] args) { YamlPropertiesFa.原创 2020-06-22 14:59:15 · 1206 阅读 · 0 评论 -
基于springboot2.0配置Filter拦截器获取http请求参数、响应时间等信息
1.需求说明公司要求采集项目api接口信息(请求地址、请求参数、响应时间等),便于后期业务优化2.实现方案采用filter拦截器实现采集日志,后来发现有两个问题需要解决,1、filter读取IO流信息后,不能再被Controller获得导致接口错误;2、文件等资源上传报错解决思路:1、继承HttpServletRequestWrapper回写请求参数数据;2、文件上传不做拦截处理当前市面上搜索到的解决方案配置的拦截器代码如下:import org.slf4j.Logger;.原创 2020-05-21 17:07:39 · 4353 阅读 · 1 评论 -
mybatis热部署加载*Mapper.xml文件
文章内容下周整理原创 2014-07-18 18:28:06 · 10642 阅读 · 2 评论