빌드 테스트

main
이범준 5 months ago
parent 6b37d2947c
commit a4677913fd

@ -1,7 +1,9 @@
package cokr.xit.fims;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ImportResource;
import cokr.xit.base.ServletCustomizer;
@ -25,7 +27,14 @@ public class FimsApplication extends XitBaseApplication {
throw new RuntimeException("서버정보 로드 오류");
}
SpringApplication.run(FimsApplication.class, args);
final SpringApplicationBuilder applicationBuilder = new SpringApplicationBuilder(FimsApplication.class);
final SpringApplication application = applicationBuilder.build();
application.setBannerMode(Banner.Mode.OFF);
application.setLogStartupInfo(false);
//application.addListeners(new ApplicationPidFileWriter("fims.pid"));
application.run(args);
}
}

@ -0,0 +1,14 @@
package cokr.xit.fims;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
public class ServletInitializer extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(FimsApplication.class);
}
}
Loading…
Cancel
Save