Aias00 opened a new issue, #1756:
URL: https://github.com/apache/rocketmq-dashboard/issues/1756

   ## Problem
   
   The current `rocketmq-studio` baseline cannot start with the default `dev` 
profile. Spring reports:
   
   ```text
   Failed to instantiate [org.apache.rocketmq.studio.settings.SettingsService]: 
No default constructor found
   ```
   
   `SettingsService` now has both the production constructor accepting 
`RestClient.Builder` and a package-private test constructor accepting 
`RestClient`. Because neither is selected explicitly, Spring does not choose 
the production constructor and attempts a no-argument constructor instead.
   
   The second constructor was introduced in #1512 for testability; the existing 
#1511 / #1512 scope covers restoring tests, not application-context startup.
   
   ## Reproduction
   
   ```bash
   cd server
   JAVA_HOME=$( /usr/libexec/java_home -v 21 ) mvn spring-boot:run
   ```
   
   ## Expected behavior
   
   The default dev profile starts successfully using the `RestClient.Builder` 
constructor.
   
   ## Proposed fix
   
   Mark the production constructor with `@Autowired` and add an 
application-context regression test.


-- 
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