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