【发布时间】:2017-02-12 03:09:00
【问题描述】:
我只连接到 Auth 服务器,我需要 JWT,通过控制台一切正常,但不是 RestTemplate,我不知道该怎么做。
相当于以下内容:
curl -u secretId:secret http://localhost:9999/uaa/oauth/token -d username=user -d password=password -d grant_type=password
我需要使用 Spring RestTemplate,知道怎么做吗?
感谢和问候
【问题讨论】:
标签: rest spring-boot spring-oauth2