RockteMQ-AI commented on issue #1756:
URL: 
https://github.com/apache/rocketmq-dashboard/issues/1756#issuecomment-5253558624

   **Issue Evaluation**
   
   Category: `bug` | Status: **Confirmed**
   
   This is a classic Spring constructor injection ambiguity issue. When a class 
has multiple constructors and none is annotated with `@Autowired`, Spring 
defaults to the no-arg constructor. If that doesn't exist, instantiation fails.
   
   **Root Cause:** `SettingsService` has two constructors (production with 
`RestClient.Builder`, test with `RestClient`) but neither is explicitly 
selected via `@Autowired`. Spring cannot determine which to use.
   
   **Impact:** Application context fails to start with default `dev` profile — 
blocks all development and deployment.
   
   **Severity:** **critical** — application cannot start
   
   **Proposed Fix:** Add `@Autowired` to the production constructor accepting 
`RestClient.Builder`. This is the minimal, correct fix.
   
   An automated fix proposal can be generated. Reply `/approve` to proceed with 
PR generation.
   
   ---
   *Automated evaluation by RockteMQ-AI*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to