We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如果模块的apollo打开了提前加载apollo.bootstrap.eagerLoad.enabled=true,然后基座和模块一起静态启动的话,模块启动阶段apollo初始化会报错
基座和模块都依赖apollo, 其模块中的apollo没有设置为provided, 模块中的apollo.bootstrap.eagerLoad.enabled=true 选择静态合并启动-Dcom.alipay.sofa.ark.static.biz.dir=./biz
java -version
uname -a
The text was updated successfully, but these errors were encountered:
apollo打开了提前加载apollo.bootstrap.eagerLoad.enabled的话 模块启动时ConfigFileApplicationListener里加载apollo的EnvironmentPostProcessor的问题
这个问题貌似springboot2.5.x版本做了优化的口子 spring-projects/spring-boot#26126 否则只能自己去加个ark-plugin去覆盖ConfigFileApplicationListener改下这边加载EnvironmentPostProcessor的逻辑把当前的BizClassloader作为参数。 不知道是否还有其他更好的解决方案。
Sorry, something went wrong.
目前较为合适的方案是写一个 ark-plugin 去适配 springboot 2.3.x ,相同的问题见 #188 该问题已经修复,见 koupleless/runtime#31
gaosaroma
No branches or pull requests
Describe the question or bug
如果模块的apollo打开了提前加载apollo.bootstrap.eagerLoad.enabled=true,然后基座和模块一起静态启动的话,模块启动阶段apollo初始化会报错
Steps to reproduce
基座和模块都依赖apollo, 其模块中的apollo没有设置为provided, 模块中的apollo.bootstrap.eagerLoad.enabled=true
选择静态合并启动-Dcom.alipay.sofa.ark.static.biz.dir=./biz
Environment
java -version
):jdk8uname -a
):The text was updated successfully, but these errors were encountered: