In Spring Boot 3.0.2, dispatcherServlet
is not working when combined with filterChain
function
#12659
Labels
dispatcherServlet
is not working when combined with filterChain
function
#12659
I'm using
spring-security
in my project. After upgrading to Spring Boot 3.0.2, thedispatcherServlet
seems not working.I've composed a simple project here.
In the main branch, the project is backed by Spring Boot 2.7.8 and it's working.
Run the application
Run
curl localhost:8080/topsecret
, the terminal will return{"timestamp":"2023-02-12T21:26:39.147+00:00","status":403,"error":"Forbidden","path":"/topsecret"}
In the
spring-boot3
branch, the project is backed by Spring Boot 3.0.0 and it's not workingRun the application
Run
curl localhost:8080/topsecret
in the terminal and nothing returns.Note that apart from the dependency change, I only changed antMatchers to requestMatchers in here.
Additional reference on the spring-security's filterChain function.
The text was updated successfully, but these errors were encountered: