|
@@ -1,7 +1,6 @@
|
|
|
package cn.com.qmth.examcloud.task.starter;
|
|
|
|
|
|
-import cn.com.qmth.examcloud.web.bootstrap.AppBootstrap;
|
|
|
-import cn.com.qmth.examcloud.web.support.SpringContextHolder;
|
|
|
+import org.springframework.boot.SpringApplication;
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
import org.springframework.boot.autoconfigure.domain.EntityScan;
|
|
|
import org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration;
|
|
@@ -42,18 +41,8 @@ public class TaskApp {
|
|
|
* @author WANGWEI
|
|
|
*/
|
|
|
public static void main(String[] args) {
|
|
|
- AppBootstrap.run(TaskApp.class, args);
|
|
|
- test();
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 测试方法
|
|
|
- *
|
|
|
- * @author WANGWEI
|
|
|
- */
|
|
|
- private static void test() {
|
|
|
- Tester tester = SpringContextHolder.getBean(Tester.class);
|
|
|
- tester.test();
|
|
|
+ // AppBootstrap.run(TaskApp.class, args);
|
|
|
+ SpringApplication.run(TaskApp.class, args);
|
|
|
}
|
|
|
|
|
|
@Bean(name = "multipartResolver")
|