eugenp / tutorials

Just Announced - "Learn Spring Security OAuth":
http://bit.ly/github-lsso
MIT License
36.6k stars 54.48k forks source link

Does not work when devtools are used at the same time #17628

Open kicktipp opened 4 weeks ago

kicktipp commented 4 weeks ago

https://github.com/eugenp/tutorials/blob/9f4b9f8e7743fc7fef1d12408ece00ca81e295ca/spring-boot-modules/spring-boot-runtime-2/src/main/java/com/baeldung/restart/Application.java#L18

When devtools are used at the same time, the restart does work only once

apeterlic commented 2 weeks ago

Hi @kicktipp,

Thanks for the feedback. Can you please clarify what you mean by “when devtools are used at the same time”? Instructions on how to reproduce the issue would be very helpful.

Cheers, Team

kicktipp commented 2 weeks ago

When you add devtools you get an NPE when restarting the second time:

org.springframework.boot spring-boot-devtools true

https://docs.spring.io/spring-boot/reference/using/devtools.html

Am 26.09.24 um 06:24 schrieb Ana Peterlić:

Hi @kicktipp https://github.com/kicktipp,

Thanks for the feedback. Can you please clarify what you mean by “/when devtools are used at the same time/”? Instructions on how to reproduce the issue would be very helpful.

Cheers, Team

— Reply to this email directly, view it on GitHub <https://github.com/ eugenp/tutorials/issues/17628#issuecomment-2375842917>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ AARJBJPA4UAA4DHI7VA3XMLZYOEAPAVCNFSM6AAAAABOLZVFXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZVHA2DEOJRG4>. You are receiving this because you were mentioned.Message ID: <eugenp/ @.***>

ulisseslima commented 4 days ago

I'm getting "Field restartEndpoint in com.baeldung.restart.RestartService required a bean of type 'org.springframework.cloud.context.restart.RestartEndpoint' that could not be found." when trying to run the application.