Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.1k views
in Technique[技术] by (71.8m points)

Oauth2.0 如何自定义异常

image.png
为什么使用tokenEndpoint.postAccessToken自定义token返回格式后endpoints.exceptionTranslator(this.authWebResponseExceptionTranslator);为什么不走自定义异常返回


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

tokenEndPoint人家已经注册了,最好还是直接调用接口。从你这代码中,也没看见哪必须走自定义异常啊。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...