|
|
|
|
@ -5,15 +5,16 @@ import java.util.List;
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
|
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
|
|
|
|
|
|
|
|
import cokr.xit.base.ServletCustomizer;
|
|
|
|
|
import cokr.xit.fims.mngt.service.bean.TaskProcessor;
|
|
|
|
|
import cokr.xit.fims.task.TaskMvcConfig;
|
|
|
|
|
|
|
|
|
|
@ImportAutoConfiguration({ServletCustomizer.class,TaskMvcConfig.class})
|
|
|
|
|
@ComponentScan(basePackageClasses = cokr.xit.applib.HttpStatusCodeExceptionControllerAdvice.class)
|
|
|
|
|
public class MainApplication extends SpringBootApplicationBridge {
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
|
|
|
|
|
allowRestrictedHeaders();
|
|
|
|
|
@ -43,4 +44,9 @@ public class MainApplication extends SpringBootApplicationBridge {
|
|
|
|
|
}
|
|
|
|
|
System.setProperty("jdk.httpclient.allowRestrictedHeaders", allowRestrictedHeaders);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Bean("taskProcessor")
|
|
|
|
|
public TaskProcessor taskProcessor() {
|
|
|
|
|
return TaskProcessor.get(TaskProcessor::new);
|
|
|
|
|
}
|
|
|
|
|
}
|