|
@@ -1,5 +1,9 @@
|
|
|
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.SpringBootApplication;
|
|
|
import org.springframework.boot.autoconfigure.domain.EntityScan;
|
|
@@ -15,11 +19,6 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|
|
import org.springframework.web.multipart.MultipartResolver;
|
|
|
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;
|
|
|
-
|
|
|
@SpringBootApplication
|
|
|
@Configuration
|
|
|
@EnableJpaAuditing
|
|
@@ -54,6 +53,7 @@ public class CoreExamWorkApp {
|
|
|
AppBootstrap.run(CoreExamWorkApp.class, args);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
@Bean(name = "multipartResolver")
|
|
|
public MultipartResolver multipartResolver() {
|
|
|
CommonsMultipartResolver resolver = new CommonsMultipartResolver();
|