MVC Java Config - HandlerInterceptor not excluding paths

后端 未结 5 762
孤城傲影
孤城傲影 2021-02-07 15:37

I have a MVC Java configuration but the HandlerInterceptor is not excluding some patterns.

At the line marked with xxx, if

1) I ad

5条回答
  •  面向向阳花
    2021-02-07 16:31

    I run into this trouble, can't exclude the path. After I debug, found out is because Spring security redirect to "/login", because of "/login" is included in "/**", that why cannot access.

    Solution is add the login & logout link as exclude paths too!

提交回复
热议问题