|
@@ -1,10 +1,9 @@
|
|
-package cn.com.qmth.examcloud.exchange.starter;
|
|
|
|
|
|
+package cn.com.qmth.examcloud.exchange;
|
|
|
|
|
|
import org.slf4j.MDC;
|
|
import org.slf4j.MDC;
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
-import org.springframework.boot.autoconfigure.domain.EntityScan;
|
|
|
|
import org.springframework.boot.autoconfigure.web.MultipartAutoConfiguration;
|
|
import org.springframework.boot.autoconfigure.web.MultipartAutoConfiguration;
|
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
|
|
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
|
|
@@ -20,21 +19,20 @@ import cn.com.qmth.examcloud.common.support.logging.ExamCloudLogFactory;
|
|
import cn.com.qmth.examcloud.common.support.logging.SLF4JImpl;
|
|
import cn.com.qmth.examcloud.common.support.logging.SLF4JImpl;
|
|
|
|
|
|
@ComponentScan(basePackages = { "com.qmth.commons", "cn.com.qmth" })
|
|
@ComponentScan(basePackages = { "com.qmth.commons", "cn.com.qmth" })
|
|
-@EntityScan(basePackages = { "com.qmth.commons", "cn.com.qmth" })
|
|
|
|
@SpringBootApplication
|
|
@SpringBootApplication
|
|
@EnableEurekaClient
|
|
@EnableEurekaClient
|
|
@EnableDiscoveryClient
|
|
@EnableDiscoveryClient
|
|
@EnableAutoConfiguration(exclude = { MultipartAutoConfiguration.class })
|
|
@EnableAutoConfiguration(exclude = { MultipartAutoConfiguration.class })
|
|
-public class ExchangeApplication {
|
|
|
|
|
|
+public class ExchangeApp {
|
|
|
|
|
|
- private static final ExamCloudLog LOG = ExamCloudLogFactory.getLog(ExchangeApplication.class);
|
|
|
|
|
|
+ private static final ExamCloudLog LOG = ExamCloudLogFactory.getLog(ExchangeApp.class);
|
|
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
public static void main(String[] args) throws Exception {
|
|
|
|
|
|
if (LOG instanceof SLF4JImpl) {
|
|
if (LOG instanceof SLF4JImpl) {
|
|
MDC.put("TRACE_ID", Thread.currentThread().getName());
|
|
MDC.put("TRACE_ID", Thread.currentThread().getName());
|
|
}
|
|
}
|
|
- SpringApplication.run(ExchangeApplication.class, args);
|
|
|
|
|
|
+ SpringApplication.run(ExchangeApp.class, args);
|
|
}
|
|
}
|
|
|
|
|
|
@Bean
|
|
@Bean
|