mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-21 20:37:11 +08:00
fix: 权限校验注解不生效问题修复
This commit is contained in:
parent
622277f35a
commit
47159475fb
@ -12,6 +12,7 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
import org.springframework.security.authentication.AbstractAuthenticationToken;
|
||||
import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity;
|
||||
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
|
||||
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
|
||||
import org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer;
|
||||
@ -38,6 +39,7 @@ import java.util.List;
|
||||
@ConfigurationProperties(prefix = "security")
|
||||
@Configuration
|
||||
@EnableWebSecurity
|
||||
@EnableMethodSecurity
|
||||
@RequiredArgsConstructor
|
||||
@Slf4j
|
||||
public class ResourceServerConfig {
|
||||
|
Loading…
Reference in New Issue
Block a user