在Nacos中线上环境会偶尔出现这个问题 ,这个是为什么?

在Nacos中线上环境会偶尔出现这个问题 ,这个是为什么?{
code: 500,
data: null,
message: "Failed to handle request [GET http://test.tech/public/products/by-models]: Error creating bean with name 'ribbonServerList' defined in com.alibaba.cloud.nacos.ribbon.NacosRibbonClientConfiguration: Unsatisfied dependency expressed through method 'ribbonServerList' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'nacosProperties': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)"
}

展开
收起
花开富贵111 2024-05-25 15:45:47 160 分享 版权
1 条回答
写回答
取消 提交回答
  • 线上环境偶尔出现的500错误是因为在服务关闭或Bean销毁期间,不当尝试创建Ribbon负载均衡所需的Bean,导致Spring容器管理Bean时出现冲突,检查Bean生命周期管理和应用关闭逻辑。

    2024-05-25 16:05:47
    赞同 2 展开评论
问答分类:
问答标签:
问答地址:

为微服务建设降本增效,为微服务落地保驾护航。

还有其他疑问?
咨询AI助理