🐛 Fixing a bug. 修复 @pms.hasPermission 权限判断不生效的问题

This commit is contained in:
aeizzz committed 2023-02-03 13:22:26 +08:00
1 parent 6843d5ab59
commit de8fd9efc4
1 file changed
+2
@@ -22,6 +22,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.oauth2.server.resource.introspection.OpaqueTokenIntrospector;
@@ -36,6 +37,7 @@ import org.springframework.security.web.SecurityFilterChain;
@Slf4j
@EnableWebSecurity
@RequiredArgsConstructor
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class PigResourceServerConfiguration {
protected final ResourceAuthExceptionEntryPoint resourceAuthExceptionEntryPoint;