Spring Security: How to add a redirect query parameter to the login url to allow bookmarking of the page?

前端 未结 2 1512
清歌不尽
清歌不尽 2020-12-30 15:02

Problem Scenario

I\'m currently working on the login page of my application which is based on Spring boot and related Spring projects (like security

2条回答
  •  無奈伤痛
    2020-12-30 15:26

    try to make login less restrictive . by adding the following to your security configuration:

    http
    .authorizeRequests()
        .antMatchers("/login").permitAll()
        ...
    

    Original thread

提交回复
热议问题