取消 @AutoConfigureAfter (必须应用在Spring扫描不到的地方)

v1.4.1
Parker 5 years ago
parent 78b76a50ae
commit 724ceb5109

@ -18,7 +18,6 @@ package org.opsli.core.autoconfigure.conf;
import lombok.extern.slf4j.Slf4j;
import org.opsli.core.cache.pushsub.receiver.RedisPushSubReceiver;
import org.opsli.plugins.redis.conf.RedisPluginConfig;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@ -37,7 +36,6 @@ import org.springframework.data.redis.listener.adapter.MessageListenerAdapter;
**/
@Slf4j
@Configuration
@AutoConfigureAfter(RedisPluginConfig.class)
@ConditionalOnProperty(name = "spring.redis.pushsub.enable", havingValue = "true")
public class RedisMessageListenerConfig {

@ -59,7 +59,6 @@ import static org.opsli.common.constants.OrderConstants.UTIL_ORDER;
@Slf4j
@Order(UTIL_ORDER)
@Component
@AutoConfigureAfter({RedisPlugin.class , EhCachePlugin.class})
public class CacheUtil {
/** 热点数据缓存时间 秒 */

@ -23,7 +23,6 @@ import org.opsli.common.utils.Props;
import org.opsli.core.msg.TokenMsg;
import org.opsli.plugins.redis.RedisPlugin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
@ -40,7 +39,6 @@ import static org.opsli.common.constants.OrderConstants.UTIL_ORDER;
*/
@Component
@Order(UTIL_ORDER)
@AutoConfigureAfter({RedisPlugin.class})
@Lazy(false)
public class CaptchaUtil{

@ -32,7 +32,6 @@ import org.opsli.plugins.redis.RedisLockPlugins;
import org.opsli.plugins.redis.RedisPlugin;
import org.opsli.plugins.redis.lock.RedisLock;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
@ -53,7 +52,6 @@ import static org.opsli.common.constants.OrderConstants.UTIL_ORDER;
@Slf4j
@Order(UTIL_ORDER)
@Component
@AutoConfigureAfter({RedisPlugin.class , RedisLockPlugins.class, DictDetailApi.class})
@Lazy(false)
public class DictUtil {

@ -14,7 +14,6 @@ import org.opsli.common.constants.TokenTypeConstants;
import org.opsli.common.exception.JwtException;
import org.opsli.core.msg.JwtMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
@ -32,7 +31,6 @@ import static org.opsli.common.constants.OrderConstants.UTIL_ORDER;
@Order(UTIL_ORDER)
@Lazy(false)
@Component
@AutoConfigureAfter({GlobalProperties.class})
public class JwtUtil {

@ -43,7 +43,6 @@ import static org.opsli.common.constants.OrderConstants.UTIL_ORDER;
@Slf4j
@Order(UTIL_ORDER)
@Component
@AutoConfigureAfter({RedisPlugin.class , RedisLockPlugins.class, MenuApi.class})
@Lazy(false)
public class MenuUtil {

@ -26,7 +26,6 @@ import org.opsli.plugins.redis.RedisLockPlugins;
import org.opsli.plugins.redis.RedisPlugin;
import org.opsli.plugins.redis.lock.RedisLock;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
@ -43,7 +42,6 @@ import static org.opsli.common.constants.OrderConstants.UTIL_ORDER;
@Slf4j
@Order(UTIL_ORDER)
@Component
@AutoConfigureAfter({RedisPlugin.class , RedisLockPlugins.class, UserApi.class})
@Lazy(false)
public class OrgUtil {

@ -24,7 +24,6 @@ import org.opsli.common.utils.Props;
import org.opsli.plugins.redis.RedisLockPlugins;
import org.opsli.plugins.redis.RedisPlugin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
@ -45,7 +44,6 @@ import static org.opsli.common.constants.OrderConstants.UTIL_ORDER;
@Order(UTIL_ORDER)
@Component
@Lazy(false)
@AutoConfigureAfter({RedisPlugin.class , RedisLockPlugins.class})
public class SearchHisUtil {

@ -43,7 +43,6 @@ import static org.opsli.common.constants.OrderConstants.UTIL_ORDER;
@Slf4j
@Order(UTIL_ORDER)
@Component
@AutoConfigureAfter({RedisPlugin.class , RedisLockPlugins.class, TenantApi.class})
@Lazy(false)
public class TenantUtil {

@ -36,7 +36,6 @@ import org.opsli.core.autoconfigure.properties.GlobalProperties;
import org.opsli.core.msg.TokenMsg;
import org.opsli.plugins.redis.RedisPlugin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
@ -56,7 +55,6 @@ import static org.opsli.common.constants.OrderConstants.UTIL_ORDER;
@Slf4j
@Order(UTIL_ORDER)
@Component
@AutoConfigureAfter({GlobalProperties.class, RedisPlugin.class})
@Lazy(false)
public class UserTokenUtil {

@ -36,7 +36,6 @@ import org.opsli.plugins.redis.RedisLockPlugins;
import org.opsli.plugins.redis.RedisPlugin;
import org.opsli.plugins.redis.lock.RedisLock;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
@ -55,7 +54,6 @@ import static org.opsli.common.constants.OrderConstants.UTIL_ORDER;
@Slf4j
@Order(UTIL_ORDER)
@Component
@AutoConfigureAfter({GlobalProperties.class, RedisPlugin.class , RedisLockPlugins.class, UserApi.class})
@Lazy(false)
public class UserUtil {

Loading…
Cancel
Save