User goes to url

@RequestMapping(value="/link/{update}", method=RequestMethod.GET) 

If he is not authorized, he is transferred to the login page. The user is authorized and his redirect to

 @RequestMapping(value="/link", method=RequestMethod.GET) 

This link is without the {update} parameter and they have to re-click the link /link/{update} . It turns out if the user is not authorized and {update} contained, write the parameter to the session. After authorization to pull out the session, if there is one, pull the parameter from there?

    1 answer 1

    In the configuration, the parameter always-use-default-target="false" will always return to the page from which the user came after authorization.