79706543

Date: 2025-07-18 17:41:57
Score: 3
Natty:
Report link

I think the requestMatchers have a higher priority than the method annotations.

I also encountered the same problem. I wanted to validate all resources under the /api/** path, but adding @PermitAll at the /api/abc path was ineffective, and even changing to @PreAuthorize("permitAll()") also didn't work.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @PermitAll
  • Low reputation (1):
Posted by: Bunny