spring is not redirecting to default target url?

后端 未结 5 1636
滥情空心
滥情空心 2020-12-19 06:15

I am using spring security for authentication. authentication is working fine. but after authentication it is not redirecting to the html that have mentioned using default t

5条回答
  •  佛祖请我去吃肉
    2020-12-19 07:09

    As you can see in the image, there is some kind of bad design (IMO It should always redirect to the default-target-url). When you go to the login url from a forbidden resource, it will redirect you to that URL and not going thru the default-target-url. Just use always-use-default-target="true" and you will have the desire behavior

    http://i.stack.imgur.com/fj9ou.png

提交回复
热议问题