|
@@ -1,12 +1,50 @@
|
|
package cn.com.qmth.examcloud.bridge;
|
|
package cn.com.qmth.examcloud.bridge;
|
|
|
|
|
|
|
|
+import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
|
|
|
+import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
|
+import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
|
|
|
|
+import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
|
|
+import org.springframework.context.annotation.ComponentScan;
|
|
|
|
+import org.springframework.context.annotation.Configuration;
|
|
|
|
+
|
|
|
|
+import cn.com.qmth.examcloud.web.bootstrap.AppBootstrap;
|
|
|
|
+import cn.com.qmth.examcloud.web.support.SpringContextHolder;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
- * 类注释
|
|
|
|
|
|
+ * 启动类
|
|
*
|
|
*
|
|
* @author WANGWEI
|
|
* @author WANGWEI
|
|
* @date 2019年10月12日
|
|
* @date 2019年10月12日
|
|
* @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
|
|
* @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
|
|
*/
|
|
*/
|
|
|
|
+@SpringBootApplication
|
|
|
|
+@Configuration
|
|
|
|
+@ComponentScan(basePackages = {"cn.com.qmth"})
|
|
|
|
+@EnableAutoConfiguration(exclude = {RedisAutoConfiguration.class,
|
|
|
|
+ DataSourceAutoConfiguration.class})
|
|
public class BridgeApp {
|
|
public class BridgeApp {
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * main
|
|
|
|
+ *
|
|
|
|
+ * @author WANGWEI
|
|
|
|
+ * @param args
|
|
|
|
+ */
|
|
|
|
+ public static void main(String[] args) {
|
|
|
|
+
|
|
|
|
+ AppBootstrap.run(BridgeApp.class, args);
|
|
|
|
+
|
|
|
|
+ test();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 测试方法
|
|
|
|
+ *
|
|
|
|
+ * @author WANGWEI
|
|
|
|
+ */
|
|
|
|
+ private static void test() {
|
|
|
|
+ Tester tester = SpringContextHolder.getBean(Tester.class);
|
|
|
|
+ tester.test();
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|