修复oauth-starter问题

This commit is contained in:
zhuyijun 2022-09-20 23:23:14 +08:00
parent e6e28161ba
commit f4e1c7658c
3 changed files with 8 additions and 9 deletions

View File

@ -30,5 +30,5 @@ public interface UserMapper extends BaseMapper<UserPo> {
* @author zhuyijun * @author zhuyijun
* @date 2022/9/19 上午12:47 * @date 2022/9/19 上午12:47
*/ */
IPage<UserVo> findPage(IPage<UserPageDto> page, @Param("userDto") UserPageDto userPageDto, @Param("tenantId") String tenantId); IPage<UserVo> findPage(IPage<UserPageDto> page, @Param("userPageDto") UserPageDto userPageDto, @Param("tenantId") String tenantId);
} }

View File

@ -40,7 +40,6 @@ public class ResourceServerConfig extends ResourceServerConfigurerAdapter {
@Override @Override
public void configure(HttpSecurity http) throws Exception { public void configure(HttpSecurity http) throws Exception {
http.csrf().disable() http.csrf().disable()
.requestMatchers().regexMatchers("/user/**").and()
.authorizeRequests() .authorizeRequests()
.anyRequest() .anyRequest()
.authenticated() .authenticated()

View File

@ -1,7 +1,7 @@
org.springframework.boot.cn.zyjblogs.starter.feign.autoconfigure.EnableAutoConfiguration=\ org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
cn.zyjblogs.starter.oauth.cn.zyjblogs.starter.feign.autoconfigure.OauthAutoConfiguration,\ cn.zyjblogs.starter.oauth.config.OauthFeignInterceptorAutoConfiguration,\
cn.zyjblogs.starter.oauth.resource.ResourceServerConfig,\
cn.zyjblogs.starter.oauth.security.TokenConfig,\ cn.zyjblogs.starter.oauth.security.TokenConfig,\
cn.zyjblogs.starter.oauth.security.OauthAccessTokenConverter,\ cn.zyjblogs.starter.oauth.security.OauthAccessTokenConverter,\
cn.zyjblogs.starter.oauth.config.OauthInterceptorAutoConfiguration,\ cn.zyjblogs.starter.oauth.config.OauthInterceptorAutoConfiguration,\
cn.zyjblogs.starter.oauth.config.OauthFeignInterceptorAutoConfiguration,\ cn.zyjblogs.starter.oauth.autoconfigure.OauthAutoConfiguration
cn.zyjblogs.starter.oauth.resource.ResourceServerConfig