Przeglądaj źródła

增加专家评审查询方法

master
WendyYang 1 rok temu
rodzic
commit
0f6b63ae99
1 zmienionych plików z 6 dodań i 1 usunięć
  1. +6
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/App.java

+ 6
- 1
pmapi/src/main/java/com/ningdatech/pmapi/App.java Wyświetl plik

@@ -1,8 +1,11 @@
package com.ningdatech.pmapi;

import com.ningdatech.basic.util.SpringUtils;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
@@ -22,7 +25,9 @@ public class App {
protected static final String MAPPER_PACKAGES = "com.ningdatech.pmapi.**.mapper";

public static void main(String[] args) {
SpringApplication.run(App.class, args);
ApplicationContext context = SpringApplication.run(App.class, args);
// 设置applicationContext
SpringUtils.setApplicationContext(context);
}

}

Ładowanie…
Anuluj
Zapisz