|
@@ -1,11 +1,12 @@ |
|
|
package com.ningdatech.pmapi; |
|
|
package com.ningdatech.pmapi; |
|
|
|
|
|
|
|
|
import com.ningdatech.basic.util.SpringUtils; |
|
|
import com.ningdatech.basic.util.SpringUtils; |
|
|
|
|
|
import com.ningdatech.pmapi.common.util.SpringContextHolder; |
|
|
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.ApplicationContext; |
|
|
import org.springframework.context.ConfigurableApplicationContext; |
|
|
|
|
|
|
|
|
import org.springframework.context.annotation.Bean; |
|
|
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; |
|
@@ -30,4 +31,9 @@ public class App { |
|
|
SpringUtils.setApplicationContext(context); |
|
|
SpringUtils.setApplicationContext(context); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Bean |
|
|
|
|
|
public SpringContextHolder springContextHolder() { |
|
|
|
|
|
return new SpringContextHolder(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |