master
关凯 2023-09-14 21:34:50 +08:00
parent bc56fb189f
commit c4722938a1
2 changed files with 7 additions and 4 deletions

View File

@ -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());

View File

@ -23,7 +23,7 @@
<!-- jdk版本 -->
<jdk.version>1.8</jdk.version>
<!-- 平台版本 -->
<base.version>5.0.230</base.version>
<base.version>5.0.231</base.version>
<!-- Spring 版本号 -->
<spring.version>5.1.2.RELEASE</spring.version>