OAuth2退出操作返回404,大家有遇到的吗?
http.authorizeRequests().anyRequest().permitAll().and().logout().logoutUrl("/oauth/remove").logoutSuccessHandler(xxx).addLogoutHandler(xxx).clearAuthentication(true).csrf().disable()
$.ajax({
url: 'http://xxxx/oauth/remove',
type: 'post',
dataType: 'json',
success: function(result) {},
error: function(xhr,text,error) {}
})
返回:
{
"timestamp": "2023-08-25T14:26:50
"status": 404,
"error": "Not Found",
"path": "/oauth/remove"
}