0
我想以编程方式重新启动我的春季启动应用程序结束点。以下是我用过的线。春季重启结束点使用春天云环境
public class FileWatcher {
@Autowired
private RestartEndpoint restartEndpoint;
public void onFileChange() {
Thread restartThread = new Thread(() -> restartEndpoint.restart());
restartThread.setDaemon(false);
restartThread.start();
}
}
但它会抛出下面的错误。
Error:(32, 64) java: cannot access org.springframework.boot.actuate.endpoint.AbstractEndpoint
class file for org.springframework.boot.actuate.endpoint.AbstractEndpoint not found
我在做什么错在这里?任何帮助将非常感激。
你有驱动器启动? – spencergibb
抱歉没有得到:(我是春天新手 – mayooran