fix #I545XE

This commit is contained in:
zhult13
2022-05-15 21:57:53 +08:00
parent f64d74802f
commit 1e8ccfe202
5 changed files with 70 additions and 1 deletions
@@ -2,6 +2,7 @@ package com.central.common.utils;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.core.annotation.Order;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
@@ -11,6 +12,7 @@ import org.springframework.stereotype.Component;
* @author 作者 owen E-mail: 624191343@qq.com
*/
@Component
@Order(0)
public class SpringUtil implements ApplicationContextAware {
private static ApplicationContext applicationContext = null;
@@ -3,4 +3,5 @@ com.central.common.config.BannerInitializer
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.central.common.feign.fallback.UserServiceFallbackFactory,\
com.central.common.lock.LockAspect
com.central.common.lock.LockAspect,\
com.central.common.utils.SpringUtil