04 2020 档案
SpringBoot 类中方法调用方法事务失效问题
摘要:@Sevice public class Test { public void a(){ b(); } @Transactional public void b(){ System.out.print("b"); } } 此时事务时不生效的,因为@Transactional注解事务是通过代理来控制的 阅读全文
posted @ 2020-04-29 20:20 Joequa 阅读(2129) 评论(0) 推荐(0)
SpringFeign 的 Hystrix 熔断器出现 timed-out and no fallback available 错误
摘要:Hystrix 熔断器默认超时时间是 1 秒钟,我们需要在配置中修改它的超时时间配置,同时也要设置 ribbon 的超时时间。 解决方法:application中配置以下 hystrix: command: default: execution: isolation: thread: timeout 阅读全文
posted @ 2020-04-13 11:40 Joequa 阅读(4926) 评论(0) 推荐(0)