spring-cloud / spring-cloud/spring-cloud-commons

/restart endpoint stops working after adding devtools

Open
#102 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

closable
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.