|
@@ -1,9 +1,5 @@
|
|
package cn.com.qmth.examcloud.core.examwork.starter;
|
|
package cn.com.qmth.examcloud.core.examwork.starter;
|
|
|
|
|
|
-import cn.com.qmth.examcloud.core.examwork.base.enums.ExamProperty;
|
|
|
|
-import cn.com.qmth.examcloud.core.examwork.dao.UniqueRuleHolder;
|
|
|
|
-import cn.com.qmth.examcloud.web.bootstrap.AppBootstrap;
|
|
|
|
-import cn.com.qmth.examcloud.web.jpa.DataIntegrityViolationTransverter;
|
|
|
|
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.domain.EntityScan;
|
|
@@ -19,6 +15,12 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|
import org.springframework.web.multipart.MultipartResolver;
|
|
import org.springframework.web.multipart.MultipartResolver;
|
|
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
|
|
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
|
|
|
|
|
|
|
|
+import cn.com.qmth.examcloud.core.examwork.base.enums.ExamProperty;
|
|
|
|
+import cn.com.qmth.examcloud.core.examwork.dao.UniqueRuleHolder;
|
|
|
|
+import cn.com.qmth.examcloud.web.bootstrap.AppBootstrap;
|
|
|
|
+import cn.com.qmth.examcloud.web.jpa.DataIntegrityViolationTransverter;
|
|
|
|
+import cn.com.qmth.examcloud.web.support.SpringContextHolder;
|
|
|
|
+
|
|
@SpringBootApplication
|
|
@SpringBootApplication
|
|
@Configuration
|
|
@Configuration
|
|
@EnableJpaAuditing
|
|
@EnableJpaAuditing
|
|
@@ -43,16 +45,27 @@ public class CoreExamWorkApp {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * main
|
|
|
|
- * 启动类
|
|
|
|
|
|
+ * main 启动类
|
|
|
|
+ *
|
|
* @author WANGWEI
|
|
* @author WANGWEI
|
|
* @param args
|
|
* @param args
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
public static void main(String[] args) throws Exception {
|
|
public static void main(String[] args) throws Exception {
|
|
AppBootstrap.run(CoreExamWorkApp.class, args);
|
|
AppBootstrap.run(CoreExamWorkApp.class, args);
|
|
|
|
+
|
|
|
|
+ test();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 测试方法
|
|
|
|
+ *
|
|
|
|
+ * @author WANGWEI
|
|
|
|
+ */
|
|
|
|
+ private static void test() {
|
|
|
|
+ Tester tester = SpringContextHolder.getBean(Tester.class);
|
|
|
|
+ tester.test();
|
|
|
|
+ }
|
|
|
|
|
|
@Bean(name = "multipartResolver")
|
|
@Bean(name = "multipartResolver")
|
|
public MultipartResolver multipartResolver() {
|
|
public MultipartResolver multipartResolver() {
|