Actuator endpoint restart does not work properly
When I use the endpoint restart, I get the following error, causing the restart to fail. Environment:
- Spring Boot 2.1.2
- Spring Cloud Greenwich.RELEASE
- Java 8

I'm not sure it ever worked in a war container
I'm not sure it ever worked in a war container
Thank you for your answer. If you remove the following code, the endpoint restart works fine, what does the code do, and what happens if you remove it.
code: this.application.setEnvironment(this.context.getEnvironment());

I use @EnableSidecar and in Springboot admin I see, actuator does not work. I used @EnableZuulProxy, and actuator and SpringBoot admin work.
management:
server:
port: 28080
Any news on this issue ? restart endpoint is also not working for me with same stracktrace than above
I also observed this issue. It looks like the restart endpoint only works with Tomcat server. It produces the above exception when we use Undertow as Spring Boot's embedded server.
Maybe is related to #788