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

加了@Accessors(chain=true)无法copy属性 #29

Open
shijie32177 opened this issue Aug 29, 2019 · 2 comments
Open

加了@Accessors(chain=true)无法copy属性 #29

shijie32177 opened this issue Aug 29, 2019 · 2 comments

Comments

@shijie32177
Copy link

shijie32177 commented Aug 29, 2019

和cglib的copier一样,无法在加了@accessors(chain=true)的两个实体类实现转换,但是Spring的BeanUtils可以,而且简单测试10次循环的copy,性能较其他二者较低,不知道是不是打印了一大串log的原因,可以在哪里关闭log吗?

@yangtu222
Copy link
Owner

accessors是修改了bean的函数名称对应关系,当前仅支持标准的bean的名称和函数的对应(setXXX,getXXX,isXXX),还不支持accessors里面定义的映射方式。
对于Log关闭,可以使用BeanCopyConfig.setDumpOption(AutoDumpNone) 将Log禁用。

@1725636955
Copy link

accessors是修改了bean的函数名称对应关系,当前仅支持标准的bean的名称和函数的对应(setXXX,getXXX,isXXX),还不支持accessors里面定义的映射方式。
对于Log关闭,可以使用BeanCopyConfig.setDumpOption(AutoDumpNone) 将Log禁用。

请问有考虑支持@accessors(chain=true)的链式编程吗,因为链式编程太好用了

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

3 participants