spring boot security logout

get:

   

 .logout()
            .logoutRequestMatcher(new AntPathRequestMatcher("/logout"))
                .logoutSuccessUrl("/login");

 post

.logout()
						.deleteCookies("JSESSIONID")
						.logoutUrl("/logout")
						.logoutSuccessUrl("/app/account/login.html")

 

你可能感兴趣的:(spring boot)