|
@@ -13,6 +13,7 @@ import org.springframework.data.mongodb.repository.config.EnableMongoRepositorie
|
|
|
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|
|
|
|
|
import cn.com.qmth.examcloud.web.bootstrap.AppBootstrap;
|
|
|
+import cn.com.qmth.examcloud.web.support.SpringContextHolder;
|
|
|
|
|
|
@SpringBootApplication
|
|
|
@Configuration
|
|
@@ -24,7 +25,7 @@ import cn.com.qmth.examcloud.web.bootstrap.AppBootstrap;
|
|
|
@ComponentScan(basePackages = {"cn.com.qmth"})
|
|
|
@EntityScan(basePackages = {"cn.com.qmth"})
|
|
|
@EnableJpaRepositories(basePackages = {"cn.com.qmth"})
|
|
|
-@EnableMongoRepositories(basePackages= { "cn.com.qmth" })
|
|
|
+@EnableMongoRepositories(basePackages = {"cn.com.qmth"})
|
|
|
public class OEAdminApplication {
|
|
|
static {
|
|
|
String runtimeLevel = System.getProperty("log.commonLevel");
|
|
@@ -36,6 +37,12 @@ public class OEAdminApplication {
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
AppBootstrap.run(OEAdminApplication.class, args);
|
|
|
+ test();
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ private static void test() {
|
|
|
+ Tester tester = SpringContextHolder.getBean(Tester.class);
|
|
|
+ tester.test();
|
|
|
+ }
|
|
|
+
|
|
|
}
|