This commit is contained in:
YunaiV 2024-03-30 20:27:20 +08:00
commit 953ac1b534

View File

@ -8,12 +8,12 @@ import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer;
/**
* Member 模块的 Security 配置
* Promotion 模块的 Security 配置
*/
@Configuration("memberSecurityConfiguration")
@Configuration("promotionSecurityConfiguration")
public class SecurityConfiguration {
@Bean("memberAuthorizeRequestsCustomizer")
@Bean("promotionAuthorizeRequestsCustomizer")
public AuthorizeRequestsCustomizer authorizeRequestsCustomizer() {
return new AuthorizeRequestsCustomizer() {