【发布时间】:2016-12-18 22:51:06
【问题描述】:
我的问题是,你能改变 401 错误信息的响应结构吗?
{
"error": "unauthorized",
"error_description": "No AuthenticationProvider found for org.springframework.security.authentication.UsernamePasswordAuthenticationToken"
}
例如
{
"timestamp" : 123124354,
"status" : 401,
"message" : "The username or password are not valid!"
}
【问题讨论】:
标签: spring spring-security spring-boot