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