|
@@ -2,7 +2,6 @@ package cn.com.qmth.examcloud.exchange;
|
|
|
|
|
|
import org.slf4j.MDC;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.boot.SpringApplication;
|
|
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
@@ -31,6 +30,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import cn.com.qmth.examcloud.commons.base.logging.ExamCloudLog;
|
|
|
import cn.com.qmth.examcloud.commons.base.logging.ExamCloudLogFactory;
|
|
|
import cn.com.qmth.examcloud.commons.base.logging.SLF4JImpl;
|
|
|
+import cn.com.qmth.examcloud.commons.web.boot.ExamCloudApp;
|
|
|
import cn.com.qmth.examcloud.commons.web.redis.RedisClient;
|
|
|
import cn.com.qmth.examcloud.commons.web.redis.RedisClientImpl;
|
|
|
import cn.com.qmth.examcloud.commons.web.support.CustomResponseErrorHandler;
|
|
@@ -61,7 +61,8 @@ public class ExchangeApp {
|
|
|
if (LOG instanceof SLF4JImpl) {
|
|
|
MDC.put("TRACE_ID", Thread.currentThread().getName());
|
|
|
}
|
|
|
- SpringApplication.run(ExchangeApp.class, args);
|
|
|
+
|
|
|
+ ExamCloudApp.run(ExchangeApp.class, "exchange", args);
|
|
|
|
|
|
UpyunSiteManager.init();
|
|
|
}
|