【发布时间】:2020-10-30 06:34:36
【问题描述】:
我正在使用以下内容并使用以下库:
弹簧启动:1.5.4
spring-security - 3.2.7
spring-oauth:2.0.7
spring-boot-starter-data-mongodb : 1.5.4
spring-data-mongodb : 1.10.4
当我尝试使用此 POST url 获取 oauthtoken 时: http://localhost:8080/oauth/token?grant_type=password&username=abc&password=xyz&client_id=testing&client_secret=testing using postman 我得到这个错误:
{
"error": "server_error",
"error_description": "No converter found capable of converting from type [com.mongodb.BasicDBObject] to type [org.springframework.security.oauth2.provider.OAuth2Authentication]"
}
请帮忙
问候
克里斯
【问题讨论】:
标签: spring-boot spring-security spring-data-mongodb spring-oauth2