|
@@ -10,11 +10,12 @@ package cn.com.qmth.examcloud.core.print;
|
|
|
import cn.com.qmth.examcloud.commons.logging.ExamCloudLog;
|
|
|
import cn.com.qmth.examcloud.commons.logging.ExamCloudLogFactory;
|
|
|
import cn.com.qmth.examcloud.commons.logging.SLF4JImpl;
|
|
|
-import cn.com.qmth.examcloud.web.boot.ExamCloudApp;
|
|
|
+import cn.com.qmth.examcloud.web.bootstrap.AppBootstrap;
|
|
|
import org.slf4j.MDC;
|
|
|
+import org.springframework.boot.SpringApplication;
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
import org.springframework.boot.autoconfigure.domain.EntityScan;
|
|
|
-import org.springframework.boot.web.support.SpringBootServletInitializer;
|
|
|
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
|
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
|
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
|
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
@@ -44,8 +45,14 @@ public class PrintApplication extends SpringBootServletInitializer {
|
|
|
if (LOG instanceof SLF4JImpl) {
|
|
|
MDC.put("TRACE_ID", Thread.currentThread().getName());
|
|
|
}
|
|
|
+
|
|
|
+ String runtimeLevel = System.getProperty("log.commonLevel");
|
|
|
+ if (null == runtimeLevel) {
|
|
|
+ System.setProperty("log.commonLevel", "DEBUG");
|
|
|
+ }
|
|
|
+
|
|
|
//SpringApplication.run(PrintApplication.class, args);
|
|
|
- ExamCloudApp.run(PrintApplication.class, "print", args);
|
|
|
+ AppBootstrap.run(PrintApplication.class, args);
|
|
|
}
|
|
|
|
|
|
//@Bean(name = "multipartResolver")
|