Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【fix】修复基于配置中心下发优雅上下线开关存在类找不到的问题 #664

Closed
justforstudy-A opened this issue Aug 23, 2022 · 0 comments
Assignees
Labels
kind/bug Something isn't working

Comments

@justforstudy-A
Copy link
Collaborator

【问题描述】
当应用环境变量设置优雅上下线为关闭状态而配置中心下发开启状态调用应用就会存在找不到类的问题
【问题分析】
由于环境变量设置未开启状态,导致调用的拦截器未进行注入,而配置中心动态开启的优雅上下线能力,导致在调用的时候会使用未注入的拦截器,因此出现类找不到的问题
【问题解决】
注入改为无条件注入,内部逻辑基于配置中心和环境变量内容动态判断开关

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant