I am trying to programmatically restart my Spring Application without having the user to intervene.
Basically, I have a page which allows to switch the mode of the a
I've solved this issue by using Restarter from Spring Devtools. Add this to pom.xml:
org.springframework.boot spring-boot-devtools runtime
Then use org.springframework.boot.devtools.restart.Restarter to call this:
Restarter.getInstance().restart();
It works for me. Hope this help.