Closed shawnxiang0511 closed 2 years ago
JDK 版本(必填) : 1.8.0 源码版本(必填):4.11.0 lamp-cloud-pro-datasource-column MySQL(必填): 8.0.30 Nacos(必填):2.0.3
通过网关请求登录认证的时候,报参数类型解析异常 请求地址为:http://192.168.29.1:18760/api/oauth/anyTenant/login 请求头为: ApplicationId 1 Authorization ZnJlaWdodF93ZWJfcHJvOmZyZWlnaHRfd2ViX3Byb19zZWNyZXQ= TenantId 1 Token test Content-Type application/json
请求体为: { "code": "", "grantType": "PASSWORD", "key": "", "password": "123456", "refreshToken": "", "username": "baishi1" }
{ "code": -3, "data": null, "msg": "参数类型解析异常", "path": "/anyTenant/login", "extra": null, "timestamp": "1664020380016", "errorMsg": "Required request body is missing: public com.zak.basic.base.R com.zak.freight.oauth.controller.LoginLogoutController.login(com.zak.freight.oauth.vo.param.LoginParamVO) throws com.zak.basic.exception.BizException", "isSuccess": false }
如果该issue帮助了你, 麻烦给项目点个star, 并给当前issue回复一下 “👍” 或者 “已解决”.
版本信息:
JDK 版本(必填) : 1.8.0 源码版本(必填):4.11.0 lamp-cloud-pro-datasource-column MySQL(必填): 8.0.30 Nacos(必填):2.0.3
问题描述:
通过网关请求登录认证的时候,报参数类型解析异常 请求地址为:http://192.168.29.1:18760/api/oauth/anyTenant/login 请求头为: ApplicationId 1 Authorization ZnJlaWdodF93ZWJfcHJvOmZyZWlnaHRfd2ViX3Byb19zZWNyZXQ= TenantId 1 Token test Content-Type application/json
请求体为: { "code": "", "grantType": "PASSWORD", "key": "", "password": "123456", "refreshToken": "", "username": "baishi1" }
报错截图
{ "code": -3, "data": null, "msg": "参数类型解析异常", "path": "/anyTenant/login", "extra": null, "timestamp": "1664020380016", "errorMsg": "Required request body is missing: public com.zak.basic.base.R com.zak.freight.oauth.controller.LoginLogoutController.login(com.zak.freight.oauth.vo.param.LoginParamVO) throws com.zak.basic.exception.BizException",
"isSuccess": false
}
重现步骤
支持一下
如果该issue帮助了你, 麻烦给项目点个star, 并给当前issue回复一下 “👍” 或者 “已解决”.