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
首先感谢您使用 DynamicTp,如果使用过程中有任何问题,请按照下述模板反馈问题,请使用 Markdown 语法。
nacos配置了线程池,springboot项目中没有使用任何@bean来创建dtpExecutor1 ,启动时配置文件刷新失败。如果通过@resource尝试注入该线程池会注入失败。
<dependency> <groupId>com.alibaba.boot</groupId> <artifactId>nacos-config-spring-boot-starter</artifactId> <version>0.3.0-RC</version> </dependency> <!--nacos配置中心--> <dependency> <groupId>org.dromara.dynamictp</groupId> <artifactId>dynamic-tp-spring-boot-starter-nacos</artifactId> <version>1.1.9.1-3.x</version> </dependency> <!--兼容sw解决内存泄漏--> <dependency> <groupId>org.dromara.dynamictp</groupId> <artifactId>dynamic-tp-extension-agent</artifactId> <version>1.1.9.1-3.x</version> </dependency> <!--传递sw上下文--> <dependency> <groupId>org.dromara.dynamictp</groupId> <artifactId>dynamic-tp-extension-skywalking</artifactId> <version>1.1.9.1-3.x</version> </dependency>
The text was updated successfully, but these errors were encountered:
使用spring-cloud-nacos看看
Sorry, something went wrong.
No branches or pull requests
首先感谢您使用 DynamicTp,如果使用过程中有任何问题,请按照下述模板反馈问题,请使用 Markdown 语法。
版本信息
问题描述
nacos配置了线程池,springboot项目中没有使用任何@bean来创建dtpExecutor1 ,启动时配置文件刷新失败。如果通过@resource尝试注入该线程池会注入失败。
大概原因是:如果只在配置中心配置了线程池但代码中却没有@bean声明对应的线程池,则无法触发代码DtpRegistry.registerExecutor ,以至于refresh时 Map EXECUTOR_REGISTRY中找不到对应的所以跳过刷新。所以官方文档写的如果在nacos中配置了线程池则不要再@bean重复定义线程池是否可信呢?
复现步骤
其他信息
The text was updated successfully, but these errors were encountered: