dromara / dynamic-tp

🔥🔥🔥轻量级动态线程池,内置监控告警功能,集成三方中间件线程池管理,基于主流配置中心(已支持Nacos、Apollo,Zookeeper、Consul、Etcd,可通过SPI自定义实现)。Lightweight dynamic threadpool, with monitoring and alarming functions, base on popular config centers (already support Nacos、Apollo、Zookeeper、Consul, can be customized through SPI).
https://dynamictp.cn
Apache License 2.0
3.77k stars 763 forks source link

question 引入dynamic启动失败 报 Invalid property 'executors[0].taskWrapperNames[1]' of bean class [org.dromara.dynamictp.common.properties.DtpProperties] #423

Open GeRenlog opened 5 months ago

GeRenlog commented 5 months ago

首先感谢您使用 DynamicTp,如果对项目有任何疑问需要解答,请按照下述模板提问,建议使用 Markdown 语法

使用方面

在引入该框架是启动失败 前三步我都会,引入Maven,导入配置文件(采用的是无配置中心的那种),在启动类上加注解 第四步我是这样的

Snipaste_2024-05-07_18-14-25

Snipaste_2024-05-07_18-14-44

jdk1.8 springgboot 1.1.7

原理方面

报错信息: 报错原因

其他

求大佬解答,谢谢了

GeRenlog commented 5 months ago

完整的报错信息: Invalid property 'executors[0].taskWrapperNames[1]' of bean class [org.dromara.dynamictp.common.properties.DtpProperties]: Property referenced in indexed property path 'taskWrapperNames[1]' is neither an array nor a List nor a Map; returned value was [[]]

KamToHung commented 5 months ago

配置文件怎么配的,可以参考官网或者本项目的example模块

GeRenlog commented 5 months ago

我的配置文件

image

KamToHung commented 4 months ago

我的配置文件

image

taskWrapperNames如何配置的

GeRenlog commented 4 months ago

直接复制粘贴官网的,有什么讲究吗?

image

KamToHung commented 4 months ago

直接复制粘贴官网的,有什么讲究吗?

image

试下升级springboot版本,比如2.4.2