feat: 替换spring.factories

This commit is contained in:
zlt2000
2023-11-25 10:40:12 +08:00
parent 7335dd8521
commit cb77754ca2
25 changed files with 18 additions and 36 deletions
@@ -1,2 +0,0 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.central.oauth2.common.AuthClientAutoConfiguration
@@ -6,7 +6,6 @@ import com.central.common.model.SysRole;
import com.central.common.model.SysUser;
import org.springframework.cloud.openfeign.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.util.Collections;
import java.util.List;
@@ -18,7 +17,6 @@ import java.util.List;
* @date 2019/1/18
*/
@Slf4j
@Component
public class UserServiceFallbackFactory implements FallbackFactory<UserService> {
@Override
public UserService create(Throwable throwable) {
@@ -4,14 +4,12 @@ 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;
/**
* spring获取bean工具类
*
* @author 作者 owen E-mail: 624191343@qq.com
*/
@Component
@Order(0)
public class SpringUtil implements ApplicationContextAware {
@@ -1,7 +1,2 @@
org.springframework.context.ApplicationContextInitializer=\
com.central.common.config.BannerInitializer
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.central.common.feign.fallback.UserServiceFallbackFactory,\
com.central.common.lock.LockAspect,\
com.central.common.utils.SpringUtil
com.central.common.config.BannerInitializer
@@ -0,0 +1,3 @@
com.central.common.feign.fallback.UserServiceFallbackFactory
com.central.common.lock.LockAspect
com.central.common.utils.SpringUtil
@@ -1,3 +0,0 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.central.common.filter.TenantFilter, \
com.central.common.filter.LoginUserFilter
@@ -0,0 +1,2 @@
com.central.common.filter.TenantFilter
com.central.common.filter.LoginUserFilter
@@ -1,3 +0,0 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.central.db.config.TenantAutoConfigure,\
com.central.db.config.MybatisPlusAutoConfigure
@@ -0,0 +1,2 @@
com.central.db.config.TenantAutoConfigure
com.central.db.config.MybatisPlusAutoConfigure
@@ -1,2 +0,0 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.central.es.config.RestAutoConfigure
@@ -1,3 +0,0 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.central.common.lb.RestTemplateAutoConfigure,\
com.central.common.lb.config.VerionIsolationAutoConfig
@@ -0,0 +1,2 @@
com.central.common.lb.RestTemplateAutoConfigure
com.central.common.lb.config.VerionIsolationAutoConfig
@@ -1,5 +1,2 @@
org.springframework.context.ApplicationContextInitializer=\
com.central.log.config.TtlMDCAdapterInitializer
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.central.log.LogAutoConfigure
com.central.log.config.TtlMDCAdapterInitializer
@@ -30,7 +30,6 @@ import java.util.Map;
* Blog: http://zlt2000.gitee.io
* Github: https://github.com/zlt2000
*/
@Configuration
@ComponentScan
@EnableConfigurationProperties({RedisProperties.class, CacheManagerProperties.class})
@EnableCaching
@@ -1,2 +0,0 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.central.common.redis.RedisAutoConfigure
@@ -1,2 +0,0 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.central.sentinel.config.SentinelAutoConfigure
@@ -1,2 +0,0 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.central.common.zookeeper.ZookeeperAutoConfiguration
@@ -0,0 +1 @@
com.central.common.zookeeper.ZookeeperAutoConfiguration
@@ -1,2 +0,0 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.central.common.config.DataSourceProxyConfig