5.0.231
parent
bc56fb189f
commit
c4722938a1
|
@ -9,18 +9,21 @@ import org.springframework.boot.web.servlet.ServletComponentScan;
|
|||
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
|
||||
import com.kdayun.z1.core.common.KdPrintStream;
|
||||
import com.kdayun.z1.core.framework.ApplicationContextHolder;
|
||||
|
||||
@ServletComponentScan
|
||||
@ComponentScan(basePackages = { "com.kdayun.admin", "com.kdayun.boot", "com.kdayun.z1", "com.kdayun.manager",
|
||||
"com.kdayun.report", "com.kdayun.baidu", "com.kdayun.wecom", "com.kdayun.wechat","com.kdayun.app" })
|
||||
"com.kdayun.report", "com.kdayun.baidu", "com.kdayun.wecom", "com.kdayun.wechat","com.kdayun.app", "com.kdayun.home", "com.kdayun.api" })
|
||||
@SpringBootApplication
|
||||
@MapperScan(basePackages = { "com.kdayun.*.mapper" })
|
||||
public class MainApplication extends SpringBootServletInitializer {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication springApplication = new SpringApplication(MainApplication.class,
|
||||
ApplicationContextHolder.class);
|
||||
System.setOut(new KdPrintStream(System.out));
|
||||
System.setErr(new KdPrintStream(System.err));
|
||||
|
||||
SpringApplication springApplication = new SpringApplication(MainApplication.class, ApplicationContextHolder.class);
|
||||
System.getProperties().setProperty("oracle.jdbc.J2EE13Compliant", "true");
|
||||
System.out.println("file.encoding:" + System.getProperty("file.encoding"));
|
||||
System.out.println("defaultCharset:" + Charset.defaultCharset());
|
||||
|
|
Loading…
Reference in New Issue