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.boot.web.servlet.support.SpringBootServletInitializer;
|
||||||
import org.springframework.context.annotation.ComponentScan;
|
import org.springframework.context.annotation.ComponentScan;
|
||||||
|
|
||||||
|
import com.kdayun.z1.core.common.KdPrintStream;
|
||||||
import com.kdayun.z1.core.framework.ApplicationContextHolder;
|
import com.kdayun.z1.core.framework.ApplicationContextHolder;
|
||||||
|
|
||||||
@ServletComponentScan
|
@ServletComponentScan
|
||||||
@ComponentScan(basePackages = { "com.kdayun.admin", "com.kdayun.boot", "com.kdayun.z1", "com.kdayun.manager",
|
@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
|
@SpringBootApplication
|
||||||
@MapperScan(basePackages = { "com.kdayun.*.mapper" })
|
@MapperScan(basePackages = { "com.kdayun.*.mapper" })
|
||||||
public class MainApplication extends SpringBootServletInitializer {
|
public class MainApplication extends SpringBootServletInitializer {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
SpringApplication springApplication = new SpringApplication(MainApplication.class,
|
System.setOut(new KdPrintStream(System.out));
|
||||||
ApplicationContextHolder.class);
|
System.setErr(new KdPrintStream(System.err));
|
||||||
|
|
||||||
|
SpringApplication springApplication = new SpringApplication(MainApplication.class, ApplicationContextHolder.class);
|
||||||
System.getProperties().setProperty("oracle.jdbc.J2EE13Compliant", "true");
|
System.getProperties().setProperty("oracle.jdbc.J2EE13Compliant", "true");
|
||||||
System.out.println("file.encoding:" + System.getProperty("file.encoding"));
|
System.out.println("file.encoding:" + System.getProperty("file.encoding"));
|
||||||
System.out.println("defaultCharset:" + Charset.defaultCharset());
|
System.out.println("defaultCharset:" + Charset.defaultCharset());
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -23,7 +23,7 @@
|
||||||
<!-- jdk版本 -->
|
<!-- jdk版本 -->
|
||||||
<jdk.version>1.8</jdk.version>
|
<jdk.version>1.8</jdk.version>
|
||||||
<!-- 平台版本 -->
|
<!-- 平台版本 -->
|
||||||
<base.version>5.0.230</base.version>
|
<base.version>5.0.231</base.version>
|
||||||
<!-- Spring 版本号 -->
|
<!-- Spring 版本号 -->
|
||||||
<spring.version>5.1.2.RELEASE</spring.version>
|
<spring.version>5.1.2.RELEASE</spring.version>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue