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