当前位置:网站首页>The gateway starts other microservices first. When the gateway is started, the gateway cannot be started and there is no exception log; Start the gateway first, and all services can be started normall
The gateway starts other microservices first. When the gateway is started, the gateway cannot be started and there is no exception log; Start the gateway first, and all services can be started normall
2022-06-11 21:04:00 【qq_ twenty-one million four hundred and eighty thousand three h】
upgrade spring boot To 2.7.0,gateway Start other microservices first , Starting the gateway , The gateway cannot be started , But the gateway does not have any exception logs , Just waiting all the time , see nacos The service is not registered properly ; Start the gateway first , All services can start normally , Obstetrics and Gynecology nacos service , All services can be registered normally .
It turns out that Feign Lead to ,Spring Cloud Gateway Use OpenFeign stuck , It won't start . When in gateway Use in gateway Feign when , It will lead to gateway Gateway boot stuck , However, no error is reported .
There is no abnormal condition in the log , The detailed log is as follows :
:: Spring Boot :: (v2.7.0)
2022-06-04 20:41:37.627 INFO 28144 --- [ main] c.a.n.c.c.impl.LocalConfigInfoProcessor : LOCAL_SNAPSHOT_PATH:/Users/carter/nacos/config
2022-06-04 20:41:37.644 INFO 28144 --- [ main] c.a.nacos.client.config.impl.Limiter : limitTime:5.0
2022-06-04 20:41:37.712 INFO 28144 --- [ main] c.a.nacos.client.config.utils.JvmUtil : isMultiInstance:false
2022-06-04 20:41:37.731 WARN 28144 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[gateway] & group[DEFAULT_GROUP]
2022-06-04 20:41:37.757 WARN 28144 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[gateway.yml] & group[DEFAULT_GROUP]
2022-06-04 20:41:37.758 INFO 28144 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-gateway.yml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-gateway,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-allows.yaml,DEFAULT_GROUP'}]
2022-06-04 20:41:37.764 INFO 28144 --- [ main] com.cloud.gateway.GatewayApplication : No active profile set, falling back to 1 default profile: "default"
2022-06-04 20:41:38.210 INFO 28144 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2022-06-04 20:41:38.211 INFO 28144 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-06-04 20:41:38.225 INFO 28144 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 5 ms. Found 0 Redis repository interfaces.
2022-06-04 20:41:38.346 INFO 28144 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=d6da96dc-ee00-3f1d-b951-2210fa3441c0
2022-06-04 20:41:38.356 INFO 28144 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'validatorConfiguration' of type [com.common.exception.validation.ValidatorConfiguration$$EnhancerBySpringCGLIB$$8078cc58] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-06-04 20:41:38.370 INFO 28144 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'validator' of type [org.hibernate.validator.internal.engine.ValidatorImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-06-04 20:41:38.465 INFO 28144 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-06-04 20:41:38.467 INFO 28144 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactorDeferringLoadBalancerFilterConfig' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactorDeferringLoadBalancerFilterConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-06-04 20:41:38.470 INFO 28144 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'reactorDeferringLoadBalancerExchangeFilterFunction' of type [org.springframework.cloud.client.loadbalancer.reactive.DeferringLoadBalancerExchangeFilterFunction] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-06-04 20:41:39.656 INFO 28144 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [After]
2022-06-04 20:41:39.656 INFO 28144 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Before]
2022-06-04 20:41:39.656 INFO 28144 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Between]
2022-06-04 20:41:39.656 INFO 28144 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Cookie]
2022-06-04 20:41:39.656 INFO 28144 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Header]
2022-06-04 20:41:39.656 INFO 28144 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Host]
2022-06-04 20:41:39.656 INFO 28144 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Method]
2022-06-04 20:41:39.656 INFO 28144 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Path]
2022-06-04 20:41:39.657 INFO 28144 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Query]
2022-06-04 20:41:39.657 INFO 28144 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [ReadBody]
2022-06-04 20:41:39.657 INFO 28144 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [RemoteAddr]
2022-06-04 20:41:39.657 INFO 28144 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [XForwardedRemoteAddr]
2022-06-04 20:41:39.657 INFO 28144 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Weight]
2022-06-04 20:41:39.657 INFO 28144 --- [ main] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [CloudFoundryRouteService]
2022-06-04 20:41:39.699 INFO 28144 --- [oundedElastic-1] com.alibaba.nacos.client.naming : initializer namespace from System Property :null
2022-06-04 20:41:39.699 INFO 28144 --- [oundedElastic-1] com.alibaba.nacos.client.naming : initializer namespace from System Environment :null
2022-06-04 20:41:39.699 INFO 28144 --- [oundedElastic-1] com.alibaba.nacos.client.naming : initializer namespace from System Property :null
2022-06-04 20:41:39.842 INFO 28144 --- [oundedElastic-3] com.alibaba.nacos.client.naming : new ips(1) service: [email protected]@user-center -> [{"instanceId":"192.168.1.108#9002#DEFAULT#[email protected]@user-center","ip":"192.168.1.108","port":9002,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"[email protected]@user-center","metadata":{"preserved.register.source":"SPRING_CLOUD"},"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"ipDeleteTimeout":30000}]
2022-06-04 20:41:39.847 INFO 28144 --- [oundedElastic-3] com.alibaba.nacos.client.naming : current ips:(1) service: [email protected]@user-center -> [{"instanceId":"192.168.1.108#9002#DEFAULT#[email protected]@user-center","ip":"192.168.1.108","port":9002,"weight":1.0,"healthy":true,"enabled":true,"ephemeral":true,"clusterName":"DEFAULT","serviceName":"[email protected]@user-center","metadata":{"preserved.register.source":"SPRING_CLOUD"},"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"ipDeleteTimeout":30000}]
2022-06-04 20:43:43.034 WARN 28144 --- [.naming.updater] com.alibaba.nacos.client.naming : out of date data received, old-t: 1654346563261, new-t: 0
Log image :
Solution :
1. Modify the configuration
Because of the configuration spring.cloud.gateway.discovery.locator.enabled = true Lead to , Change it to false Or remove the configuration , Because the default is false, However, this scheme will cause dynamic routing to fail to load , Affect microservice invocation .
gateway:
discovery:
locator:
enabled: false
2.feign Injection uses lazy loading
// The key : You have to use @Lazy
@Lazy
@Autowired
private Oauth2Client oauth2Client;
Relevant big data learning demo Address :
https://github.com/carteryh/big-data
边栏推荐
- 周刊02|不瞞你說,我其實是MIT的學生
- Log in with password and exit with error for three times.
- 新品发布:国产单电口千兆网卡正式量产!
- Serval and Rooted Tree(CF1153D)-DP
- The official announced the launch of Alibaba's 2023 global school recruitment: Technical Posts account for more than 60%
- Go语言for循环
- var 和 let的区别_let 和 var的区别
- 10 R vector operation construction
- Tensorflow 2. X Getting Started tutorial
- Simple classification example of brain cell membrane equivalent neural network
猜你喜欢

File upload vulnerability - simple exploitation 2 (Mozhe college shooting range)
![[data visualization] Apache superset 1.2.0 tutorial (III) - detailed explanation of chart functions](/img/1f/00f2085186971198928b012a3792ea.jpg)
[data visualization] Apache superset 1.2.0 tutorial (III) - detailed explanation of chart functions

第一部分 物理层

Wechat applet | rotation chart

Tensorflow 2. X Getting Started tutorial

第二部分 数据链路层

Final examination of theory and practice of socialism with Chinese characteristics 1

gateway先启动其他微服务,在启动网关,网关启动不了,且无异常日志;先启动网关,所有服务能正常启动

Explanation of each column output by explain statement

php pcntl_fork 创建多个子进程解析
随机推荐
One article to show you how to understand the harmonyos application on the shelves
Object storage of CEPH distributed storage
RANSAC提取平面(MATLAB内置函数)
使用 float 创建一个网页页眉、页脚、左边的内容和主要内容。
JVM之堆区
PHP strtotime 获取自然月误差问题解决方案
Windows icon display exception resolution. The desktop icon is abnormal, the start menu icon is abnormal, and the taskbar icon is abnormal. Icon cache location.
电竞网咖用2.5G网卡,体验飞一般的感觉!
ubantu1804 两个opencv版本共存
Go语言for循环
Field queryIndexFieldnameService in xxxImpl required a single bean, but 19 were found:
【数据可视化】Apache Superset 1.2.0教程 (二)——快速入门(可视化王者英雄数据)
Unity screenshot
Js 监听滚动触底加载更多_浏览器滚动触底加载更多
How to add text on the border in bar code software
频域滤波器
JVM方法区
[Game Theory - introduction]
The secret of derating - don't challenge Datasheet
var 和 let的区别_let 和 var的区别