feat:新增配置类,实现动态配置管理,自动化注入配置功能
This commit is contained in:
@@ -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