|
@@ -12,6 +12,7 @@ import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
|
|
|
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
|
|
|
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|
|
|
|
|
+import cn.com.qmth.examcloud.core.basic.dao.enums.OrgProperty;
|
|
|
import cn.com.qmth.examcloud.core.basic.service.cache.AppCache;
|
|
|
import cn.com.qmth.examcloud.web.bootstrap.AppBootstrap;
|
|
|
import cn.com.qmth.examcloud.web.support.SpringContextHolder;
|
|
@@ -23,9 +24,9 @@ import cn.com.qmth.examcloud.web.support.SpringContextHolder;
|
|
|
@EnableTransactionManagement
|
|
|
@EnableEurekaClient
|
|
|
@EnableDiscoveryClient
|
|
|
-@ComponentScan(basePackages = {"cn.com.qmth"})
|
|
|
-@EntityScan(basePackages = {"cn.com.qmth"})
|
|
|
-@EnableJpaRepositories(basePackages = {"cn.com.qmth"})
|
|
|
+@ComponentScan(basePackages = { "cn.com.qmth" })
|
|
|
+@EntityScan(basePackages = { "cn.com.qmth" })
|
|
|
+@EnableJpaRepositories(basePackages = { "cn.com.qmth" })
|
|
|
public class CoreBasicApp {
|
|
|
|
|
|
static {
|
|
@@ -34,6 +35,8 @@ public class CoreBasicApp {
|
|
|
System.setProperty("log.commonLevel", "DEBUG");
|
|
|
}
|
|
|
System.setProperty("hibernate.dialect.storage_engine", "innodb");
|
|
|
+
|
|
|
+ OrgProperty.init();
|
|
|
}
|
|
|
|
|
|
/**
|