fix Feign 熔断不生效 bug

This commit is contained in:
疯狂的狮子li
2021-04-19 17:38:47 +08:00
parent bf5315d306
commit f8633f8c4e
4 changed files with 13 additions and 4 deletions

View File

@ -3,14 +3,13 @@ package com.ruoyi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
/**
* 启动程序
*
* @author ruoyi
*/
@EnableFeignClients
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class RuoYiApplication
{

View File

@ -207,4 +207,6 @@ feign:
response:
enabled: true
okhttp:
enabled: true
hystrix:
enabled: true