|
@@ -33,6 +33,7 @@ import org.quartz.SchedulerException;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.boot.SpringApplication;
|
|
|
import org.springframework.boot.WebApplicationType;
|
|
|
import org.springframework.boot.builder.SpringApplicationBuilder;
|
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
@@ -90,10 +91,9 @@ public class MasterServer extends AbstractServer {
|
|
|
* master server not use web service
|
|
|
*/
|
|
|
public static void main(String[] args) {
|
|
|
- SpringApplicationBuilder app = new SpringApplicationBuilder(MasterServer.class);
|
|
|
+ SpringApplication app = new SpringApplication(MasterServer.class);
|
|
|
|
|
|
- app.web(WebApplicationType.NONE)
|
|
|
- .run(args);
|
|
|
+ app.run(args);
|
|
|
}
|
|
|
|
|
|
|