spring-cloud / spring-cloud/spring-cloud-commons
/restart endpoint stops working after adding devtools
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 751
- Forks
- 744
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 9
Description
Hello,
I'm working on JHipster project and I am unable to make /restart work with Brixton.M5
I have been able to reproduce the problem with a minimal spring boot app, when I post to /restart the app restarts as expected.
But when I add spring boot devtools to the pom, restart fails saying that there's no bean of type JHipsterProperties to inject which is enabled this way:
@EnableConfigurationProperties({ JHipsterProperties.class})
Is this a known issue? Or is there something wrong in the way we init our app?
My sample app is available in this repo: https://github.com/gmarziou/issue-restart
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the minimal sample app in the linked issue-restart repository and its pom, comparing behavior with and without Spring Boot devtools. Reproduce the POST to /restart and trace why JHipsterProperties is not available; done means /restart succeeds with devtools enabled and the existing configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, spring-boot
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100