use of org.pdown.gui.rest.HttpDownAppCallback in project proxyee-down by monkeyWie.
the class DownApplication method initRest.
private void initRest() {
// init rest server config
HttpDownRestCallback.setCallback(new HttpDownAppCallback());
RestWebServerFactoryCustomizer.init(null);
ServerConfigInfo serverConfigInfo = ConfigContent.getInstance().get();
serverConfigInfo.setPort(REST_PORT);
if (StringUtils.isEmpty(serverConfigInfo.getFilePath())) {
serverConfigInfo.setFilePath(System.getProperty("user.home") + File.separator + "Downloads");
}
new SpringApplicationBuilder(DownRestServer.class).headless(false).build().run();
}
Aggregations