We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
JDK版本: jdk17 hutool版本: 5.8.26(请确保最新尝试是否还有问题)
@Data @Accessors(chain = true) class SampleBean { private String value; } @Data @Accessors(chain = true) class OtherSampleBean { private String value; } SampleBean bean1 = new SampleBean(); bean1.setValue("Hello world"); OtherSampleBean otherBean = new OtherSampleBean(); CglibUtil.copy(bean1, otherBean); System.out.println(otherBean.getValue()); // 为空
堆栈信息
测试涉及到的文件(注意脱密)
比如报错的Excel文件,有问题的图片等。
The text was updated successfully, but these errors were encountered:
这个是Cglib和Lombok的兼容问题,Cglib的拷贝不支持返回this的setter方法,因此不能识别。
考虑使用BeanUtil.copyProperties.
Sorry, something went wrong.
No branches or pull requests
版本情况
JDK版本: jdk17
hutool版本: 5.8.26(请确保最新尝试是否还有问题)
问题描述(包括截图)
堆栈信息
测试涉及到的文件(注意脱密)
比如报错的Excel文件,有问题的图片等。
The text was updated successfully, but these errors were encountered: