tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

Does not work when devtools are used at the same time

Open kicktipp opened this issue 1 year ago • 3 comments

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

kicktipp avatar Sep 17 '24 16:09 kicktipp

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

apeterlic avatar Sep 26 '24 04:09 apeterlic

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/ @.***>

kicktipp avatar Sep 27 '24 13:09 kicktipp

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.

ulisseslima avatar Oct 11 '24 14:10 ulisseslima