|
|
|
@ -1,23 +1,23 @@
|
|
|
|
|
package cokr.xit.adds;
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.Banner;
|
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
|
import org.springframework.boot.builder.SpringApplicationBuilder;
|
|
|
|
|
import org.springframework.boot.context.ApplicationPidFileWriter;
|
|
|
|
|
|
|
|
|
|
import cokr.xit.base.boot.XitBaseApplication;
|
|
|
|
|
|
|
|
|
|
// @SpringBootApplication
|
|
|
|
|
// @ImportAutoConfiguration({CommonConfig.class, ServletConfig.class, MvcConfig2.class, DatasourceConfig.class, TransactionConfig.class, SecurityConfig.class})
|
|
|
|
|
// @ContextConfiguration({"classpath:spring/context-*.xml"})
|
|
|
|
|
public class XitBootApplication extends XitBaseApplication {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
SpringApplication.run(XitBootApplication.class, args);
|
|
|
|
|
//SpringApplication.run(XitBootApplication.class, args);
|
|
|
|
|
|
|
|
|
|
// final SpringApplicationBuilder applicationBuilder = new SpringApplicationBuilder(XitBootApplication.class);
|
|
|
|
|
// final SpringApplication application = applicationBuilder.build();
|
|
|
|
|
// application.setBannerMode(Banner.Mode.OFF);
|
|
|
|
|
// application.setLogStartupInfo(false);
|
|
|
|
|
//
|
|
|
|
|
// application.addListeners(new ApplicationPidFileWriter( "adds-fo.pid"));
|
|
|
|
|
// application.run(args);
|
|
|
|
|
final SpringApplicationBuilder applicationBuilder = new SpringApplicationBuilder(XitBootApplication.class);
|
|
|
|
|
final SpringApplication application = applicationBuilder.build();
|
|
|
|
|
application.setBannerMode(Banner.Mode.OFF);
|
|
|
|
|
application.setLogStartupInfo(false);
|
|
|
|
|
|
|
|
|
|
application.addListeners(new ApplicationPidFileWriter( "adds-fo.pid"));
|
|
|
|
|
application.run(args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @Override
|
|
|
|
|