瀏覽代碼

增加专家评审查询方法

tags/24080901
WendyYang 1 年之前
父節點
當前提交
0f6b63ae99
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. +6
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/App.java

+ 6
- 1
pmapi/src/main/java/com/ningdatech/pmapi/App.java 查看文件

@@ -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);
}

}

Loading…
取消
儲存