feat:新增配置类,实现动态配置管理,自动化注入配置功能
This commit is contained in:
+6
-3
@@ -46,6 +46,11 @@
|
||||
<artifactId>zlt-redis-spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.zlt</groupId>
|
||||
<artifactId>zlt-wechat-common-core</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
@@ -94,9 +99,7 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zlt</groupId>
|
||||
<artifactId>zlt-wechat-common-core</artifactId>
|
||||
<version>6.0.0</version>
|
||||
<scope>compile</scope>
|
||||
<artifactId>zlt-wechat-spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
/**
|
||||
* @author zlt
|
||||
*/
|
||||
@EnableFeignClients
|
||||
@EnableFeignClients(basePackages = {"com.central", "com.zlt.wechat.feign"})
|
||||
@MapperScan(basePackages = "com.central.oauth.mapper")
|
||||
@EnableFeignInterceptor
|
||||
@EnableDiscoveryClient
|
||||
|
||||
@@ -74,7 +74,6 @@ public class AuthorizationServerConfig {
|
||||
private final RegisteredClientService registeredClientService;
|
||||
private final RedisSecurityContextRepository securityContextRepository;
|
||||
private final AuthenticationSuccessHandler authenticationSuccessHandler;
|
||||
|
||||
/**
|
||||
* spring security 默认的安全策略
|
||||
*/
|
||||
|
||||
@@ -6,7 +6,7 @@ import com.central.common.model.SysUser;
|
||||
import com.central.common.utils.LoginUserUtils;
|
||||
import com.central.oauth.service.ZltUserDetailsService;
|
||||
import com.zlt.wechat.entity.WechatConfig;
|
||||
import com.zlt.wechat.service.WechatConfigService;
|
||||
import com.zlt.wechat.feign.WechatConfigService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.security.authentication.DisabledException;
|
||||
import org.springframework.security.authentication.InternalAuthenticationServiceException;
|
||||
@@ -64,7 +64,8 @@ public class UserDetailServiceImpl implements ZltUserDetailsService {
|
||||
|
||||
@Override
|
||||
public WechatConfig loadMiniAppConfig(String appId) {
|
||||
return wechatConfigService.getConfig(appId);
|
||||
// return wechatConfigService.getConfig(appId);
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user