Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.x关于@Alias注解的使用冲突问题 #3878

Open
hdr893487191 opened this issue Feb 28, 2025 · 0 comments
Open

5.x关于@Alias注解的使用冲突问题 #3878

hdr893487191 opened this issue Feb 28, 2025 · 0 comments

Comments

@hdr893487191
Copy link

【问题描述】:
如果同时存在下面2个场景:
(1)使用CsvUtil用于将data导出csv文件,这时我们通常会使用注解来标记bean,用于csv文件标题,比如
@alias("支付单号") String payNo
(2)同时我们使用BeanUtil.copyProperties来复制bean属性,此时字段属性名称会被注解所取代,即字段名称将从【payNo】变成【支付单号】,导致无法进行属性copy。

期望提供一个可以在复制属性时可以忽略注解@alias的方式。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant