微服务搭建
愚蠢的阿切呀
这个作者很懒,什么都没留下…
展开
-
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 · 1529 阅读 · 0 评论 -
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 · 229 阅读 · 0 评论 -
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 · 328 阅读 · 0 评论 -
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 · 643 阅读 · 0 评论