ade303a6de
merge sync up
17 lines
391 B
Java
17 lines
391 B
Java
package com.baeldung.restart;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.cloud.context.restart.RestartEndpoint;
|
|
|
|
@Service
|
|
public class RestartService {
|
|
|
|
@Autowired
|
|
private RestartEndpoint restartEndpoint;
|
|
|
|
public void restartApp() {
|
|
restartEndpoint.restart();
|
|
}
|
|
|
|
} |