diff --git a/modules/kdayun-app/src/main/java/com/kdayun/MainApplication.java b/modules/kdayun-app/src/main/java/com/kdayun/MainApplication.java index 223249d..adcad7a 100644 --- a/modules/kdayun-app/src/main/java/com/kdayun/MainApplication.java +++ b/modules/kdayun-app/src/main/java/com/kdayun/MainApplication.java @@ -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()); diff --git a/pom.xml b/pom.xml index d0e62b7..b6412bf 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,7 @@ 1.8 - 5.0.230 + 5.0.231 5.1.2.RELEASE