Commit f96901cf authored by 赵啸非's avatar 赵啸非

修改鉴权

parent 8f4b54f4
...@@ -8,7 +8,6 @@ import com.mortals.xhx.feign.IFeign; ...@@ -8,7 +8,6 @@ import com.mortals.xhx.feign.IFeign;
import feign.hystrix.FallbackFactory; import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
......
...@@ -43,7 +43,7 @@ public class SyncUserTaskImpl implements ITaskExcuteService { ...@@ -43,7 +43,7 @@ public class SyncUserTaskImpl implements ITaskExcuteService {
userPdu.setSize(-1); userPdu.setSize(-1);
Rest<RespData<List<UserPdu>>> list = userFeign.list(userPdu); Rest<RespData<List<UserPdu>>> list = userFeign.list(userPdu);
log.debug("syncUserResp:{}", JSON.toJSONString(list)); log.info("syncUserResp:{}", JSON.toJSONString(list));
// return; // return;
// UserPdu userPdu = new UserPdu(); // UserPdu userPdu = new UserPdu();
......
...@@ -35,6 +35,9 @@ spring: ...@@ -35,6 +35,9 @@ spring:
max-active: 100 max-active: 100
max-wait: 1000 max-wait: 1000
cloud: cloud:
loadbalancer:
ribbon:
enabled: false
nacos: nacos:
# Nacos 作为注册中心的配置项,对应 NacosDiscoveryProperties 配置类 # Nacos 作为注册中心的配置项,对应 NacosDiscoveryProperties 配置类
discovery: discovery:
...@@ -75,7 +78,8 @@ upload: ...@@ -75,7 +78,8 @@ upload:
path: @profiles.filepath@ path: @profiles.filepath@
feign: feign:
hystrix: hystrix:
enabled: true enabled: false
queue: queue:
type: @profiles.queue.type@ # memory or kafka (Apache Kafka) or rabbitmq (RabbitMQ) type: @profiles.queue.type@ # memory or kafka (Apache Kafka) or rabbitmq (RabbitMQ)
core: core:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment