dromara / dromara/dynamic-tp

[BUG]: 如何项目里使用@Component注解一个线程池的子类,项目启动报错

Open
#574 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
4.8k
Forks
860
PR merge metrics
No merged PRs in 30d

Description

### 平台

Windows

### Jdk版本

JDK 8

### SpringBoot版本

2.6.7

### DynamicTp版本

1.2.2

### 配置中心类型

nacos

### 配置中心版本

2.2.3

### 问题描述

启动报错了![Image](https://github.com/user-attachments/assets/307dcff2-c5d4-42cc-8d5f-962c17adee07)

![Image](https://github.com/user-attachments/assets/3e810668-ba2e-48f6-9dce-e2738d10acd7)

### 复现步骤

![Image](https://github.com/user-attachments/assets/307dcff2-c5d4-42cc-8d5f-962c17adee07)

![Image](https://github.com/user-attachments/assets/3e810668-ba2e-48f6-9dce-e2738d10acd7)

### 其他信息

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce issue #574 on Windows with JDK 8, Spring Boot 2.6.7, DynamicTp 1.2.2, and Nacos 2.2.3 by applying @Component to a thread-pool subclass. Start by capturing the complete startup exception rather than relying on the attached images. Done means the startup failure is explained and a verified fix or clear compatibility limitation is recorded.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.