|
|
|
@ -1,12 +1,10 @@
|
|
|
|
|
package com.docus.server;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.docus.server.report.config.SdRyReportQueryConfig;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.mybatis.spring.annotation.MapperScan;
|
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
|
|
import org.springframework.context.ConfigurableApplicationContext;
|
|
|
|
|
|
|
|
|
|
import java.util.Properties;
|
|
|
|
|
|
|
|
|
@ -14,16 +12,15 @@ import java.util.Properties;
|
|
|
|
|
@Slf4j
|
|
|
|
|
//@EnableFeignClients(basePackages = ("com.feign"))
|
|
|
|
|
//@EnableHystrix
|
|
|
|
|
@SpringBootApplication(scanBasePackages ={"com.docus"})
|
|
|
|
|
@SpringBootApplication(scanBasePackages = {"com.docus"})
|
|
|
|
|
@MapperScan("com.docus.server.**.mapper")
|
|
|
|
|
public class AppRunBootstrap {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
Properties props = System.getProperties();
|
|
|
|
|
props.setProperty("org.apache.cxf.stax.allowInsecureParser", "1");
|
|
|
|
|
props.setProperty("UseSunHttpHandler", "true");
|
|
|
|
|
System.setProperty("javax.xml.parsers.DocumentBuilderFactory","com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl");
|
|
|
|
|
ConfigurableApplicationContext run = SpringApplication.run(AppRunBootstrap.class, args);
|
|
|
|
|
SdRyReportQueryConfig bean = run.getBean(SdRyReportQueryConfig.class);
|
|
|
|
|
bean.getReportQueryLisDefaultAssortType();
|
|
|
|
|
System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl");
|
|
|
|
|
SpringApplication.run(AppRunBootstrap.class, args);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|