fix: SpringBootServletInitializer 중복 제거

main
Jonguk. Lim 4 months ago
parent 5d86c30b83
commit 688b595391

@ -1,15 +1,14 @@
package cokr.xit.ens;
import cokr.xit.ens.core.utils.Checks;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.ApplicationPidFileWriter;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import cokr.xit.ens.core.utils.Checks;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@SpringBootApplication
//@Import({QuerydslConfig.class, CodeMapperConfig.class})
@ -20,7 +19,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@EnableScheduling
//@EnableWebMvc
//public class ModulePostApplication{
public class ModulePostApplication extends SpringBootServletInitializer {
public class ModulePostApplication {
public static void main(String[] args) {
log.info("ENS Application load start...");
if (Checks.isEmpty(System.getProperty("spring.profiles.active"))) {
@ -74,11 +73,4 @@ public class ModulePostApplication extends SpringBootServletInitializer {
/* multi-thread return result test */
// ResultByRunnableExample.main(args);
}
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(ModulePostApplication.class);
}
}

Loading…
Cancel
Save