- 博客(9)
- 问答 (3)
- 收藏
- 关注
原创 java 三级缓存 测试循环依赖
上图 UserLogin 和 SendEmail 循环依赖接下来看一下初始化bean的三级缓存的变化首先第一次初始化的是SendEmail初始化之前的三级缓存数量之后在获取bean的时候重新循环,这时候的三级缓存可以看先将SendEmail放入第三级中之后加载userLogin将SendEmail移动到二级中,将userLogin放入三级之后将userLogin放入一级缓存,并将二级三级清楚当检测到依赖结束后,将二三级清空...
2022-01-27 11:29:37
658
原创 Work problem handling-JDBC事务出现达到最大游标值
项目场景:一个事务处理大批量数据的新增和更新操作问题描述:出现 达到最大游标值 报错信息原因分析:JDBC事务连接处理update和insert有最大值限制解决方案:重置connect连接注:一个事务中可开启多个连接,事务的回滚和提交不受影响...
2021-09-15 21:12:57
447
原创 Work problem handling-Druid数据源事务线程出现线程泄露问题
项目场景:项目页面打开后个别链接失败问题描述:每隔一段(实际项目中是一个月)时间会出现线程池线程连接失败原因分析:新增用户操作时,代码中数据库连接事务打开后因为if-return导致事务未正常关闭解决方案:关闭事务...
2021-09-15 21:05:40
124
原创 SpringCloud构建问题:@FeignClient(value = “server“,fallback = FallBack.class)不生效
SpringCloud构建问题:@FeignClient(value = “server”,fallback = FallBack.class)不生效报错内容之前先使用@HystrixCommand之后再次使用@FeignClient(value = “server”,fallback = FallBack.class)之后依然出现报错页面,并没有调用fallbake方法报错原因使用@FeignClient忘记删除掉之前的@HystrixCommand的配置注解,然后@HystrixCommand的
2020-12-02 21:22:34
1578
原创 SpringCloud构建问题:@HystrixCommand 总是调用降级方法或者Whitelabel Error Page
SpringCloud构建问题:@HystrixCommand 总是调用降级方法或者Whitelabel Error Page报错内容使用@HystrixCommand之后访问方法出现超时错误或者调用降价方法报错原因@HystrixCommand断路器有自己的默认超时时间 为1s,如果超过时间就会报错解决方案1不使用默认时间,自己设置超时时间@HystrixCommand(commandProperties = {@HystrixProperty(name="execution.isolat
2020-12-02 20:40:57
264
原创 SpringCloud构建问题:Fegin配置完日志不显示问题
关于启动报错:Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured报错内容Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2020-11-21 18:20
2020-11-29 17:21:01
383
原创 atomicInteger.compareAndSet(count, next) 返回结果
atomicInteger.compareAndSet(count, next) 返回结果当count值与原值不匹配时返回false犯了个愚蠢的错误,代码如下int count; int next; do { count = atomicInteger.get(); next = count > Integer.MAX_VALUE ? 0 : count + 1; System.out.pri
2020-11-29 01:04:33
928
原创 SpringCloud构建问题:启动报错:Failed to configure a DataSource
SpringCloud构建问题1关于启动报错:Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured报错内容Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-11-21 18:41:33
689
空空如也
三色标记:为什么黑色只能链接断开灰色断开的白色对象而不能直接连接其他白色对象
2021-12-02
Oracle表里面没有主键怎么进行索引查询
2019-10-11
TA创建的收藏夹 TA关注的收藏夹
TA关注的人