Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
Sign in
Sign up
Fetch the repository succeeded.
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
91
Star
1.3K
Fork
666
玲娜贝er
/
ruoyi-plus-vben5
Code
Issues
28
Pull Requests
0
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
关于header的clientId被错误绑定到实体类
Top
Backlog
#IC0BDS
玲娜贝er
owner
Opened this issue
2025-04-11 11:14
## 描述 前端使用`clientId`作为headerName, 会被错误绑定到实体类记录中 ## 原因 spring的更新导致 如果headerName和实体类的名称相同(大小写完全一致) 会被绑定到实体类 - https://github.com/spring-projects/spring-framework/issues/34182 - https://github.com/spring-projects/spring-framework/issues/34125#issuecomment-2556616884 在spring v6.2.0-M4 作为feature 引入(发布日期 2024年6月13日) `https://github.com/spring-projects/spring-framework/releases/tag/v6.2.0-M4` - [Support data binding from request headers](https://github.com/spring-projects/spring-framework/issues/32676) 没有查到具体的加入springboot时间 应该是>3.3.x版本添加的 ## 演示站环境 - springboot 最新 - openresty 1.21.4.3-3-2-focal 演示站使用的老版本的openresty, 是不会产生该问题 ## 本地环境 - springboot 最新 - nginx 1.27.1 会出现该问题 使用nginx低版本也不会产生该问题 ## 解决方案 将clientId改为其他大小写形式 - ClientId - CLIENTID - ... ## 其他回复 某些连TM问题都不会排查就直接甩锅给前端的菜鸡(注意说的是某些),脑子是长在脚后跟了吗?
## 描述 前端使用`clientId`作为headerName, 会被错误绑定到实体类记录中 ## 原因 spring的更新导致 如果headerName和实体类的名称相同(大小写完全一致) 会被绑定到实体类 - https://github.com/spring-projects/spring-framework/issues/34182 - https://github.com/spring-projects/spring-framework/issues/34125#issuecomment-2556616884 在spring v6.2.0-M4 作为feature 引入(发布日期 2024年6月13日) `https://github.com/spring-projects/spring-framework/releases/tag/v6.2.0-M4` - [Support data binding from request headers](https://github.com/spring-projects/spring-framework/issues/32676) 没有查到具体的加入springboot时间 应该是>3.3.x版本添加的 ## 演示站环境 - springboot 最新 - openresty 1.21.4.3-3-2-focal 演示站使用的老版本的openresty, 是不会产生该问题 ## 本地环境 - springboot 最新 - nginx 1.27.1 会出现该问题 使用nginx低版本也不会产生该问题 ## 解决方案 将clientId改为其他大小写形式 - ClientId - CLIENTID - ... ## 其他回复 某些连TM问题都不会排查就直接甩锅给前端的菜鸡(注意说的是某些),脑子是长在脚后跟了吗?
Comments (
0
)
Sign in
to comment
Status
Backlog
Backlog
Doing
Done
Closed
Assignees
Not set
Labels
Not set
Label settings
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (3)
Tags (19)
main
dev
dev_front
1.4.1-back5.4.1-lock
1.4.1-back5.4.1
1.4.0-back5.4.0
1.3.6-back5.3.1
1.3.5-back5.3.1
1.3.4-back5.3.1
1.3.3-back5.3.1
1.3.2-back5.3.1
1.3.1-back5.3.1
1.3.0-back5.3.1
1.2.3-back5.3.1
1.2.2-back5.3.1
1.2.0-back5.3.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0
1.0.0-beta
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
参与者(1)
1
https://gitee.com/dapppp/ruoyi-plus-vben5.git
git@gitee.com:dapppp/ruoyi-plus-vben5.git
dapppp
ruoyi-plus-vben5
ruoyi-plus-vben5
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register