We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public abstract class AbstractController { @GetMapping("/get") public String get() { return "OK"; } } @RestController @Secured("USER") public class DemoController extends AbstractController { /* public String get() { return super.get(); } */ }
demoController.get() is not protected by @Secured("USER"), we have to redefine it again.
demoController.get()
@Secured("USER")
I tried to fix it by adding
annotations = findClosestClassAnnotations(targetClass, new HashSet<>()); if (!annotations.isEmpty()) { return annotations; }
after
spring-security/core/src/main/java/org/springframework/security/core/annotation/UniqueSecurityAnnotationScanner.java
Lines 159 to 162 in b9f3a28
The text was updated successfully, but these errors were encountered:
Spring Security should skip intercepting @ExceptionHandler methods other than ignore annotations on target class.
@ExceptionHandler
Sorry, something went wrong.
No branches or pull requests
demoController.get()
is not protected by@Secured("USER")
, we have to redefine it again.I tried to fix it by adding
after
spring-security/core/src/main/java/org/springframework/security/core/annotation/UniqueSecurityAnnotationScanner.java
Lines 159 to 162 in b9f3a28
but it broken GH-15352.
The text was updated successfully, but these errors were encountered: