Question Details

No question body available.

Tags

java spring-boot spring-security

Answers (1)

February 3, 2026 Score: 0 Rep: 29,508 Quality: Low Completeness: 40%

I don't think that /api/v1/products matches /api/v1/products/ you might need to do

.requestMatchers("/api/v1/auth", "/api/v1/auth/
").permitAll() .requestMatchers(HttpMethod.GET, "/api/v1/products", "/api/v1/products/").permitAll()