How does spring security oauth2 modify the return format?

/ oauth/token this interface gets access_token, but it is the default format of springsecurity. I now want to change the format to a custom format
{

.
code:"",
msg:"",
data:{
    access_token:"xxxx"
}
Please tell me what to do with the format

}
.
uses springboot2.0 + springcloud

Jun.12,2022

the same problem. I also want to know


has this problem been solved? I also have such a need. I don't know where to start


https://stackoverflow.com/que...

implement AccessDeniedHandler or AuthenticationEntryPoint

Menu