Browse Source

增加专家评审查询方法

tags/24080901
WendyYang 1 year ago
parent
commit
0f6b63ae99
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/App.java

+ 6
- 1
pmapi/src/main/java/com/ningdatech/pmapi/App.java View File

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


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


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


} }

Loading…
Cancel
Save