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

对于插件使用的疑问 #53

Open
ChineseAStar opened this issue Jul 7, 2018 · 2 comments
Open

对于插件使用的疑问 #53

ChineseAStar opened this issue Jul 7, 2018 · 2 comments

Comments

@ChineseAStar
Copy link

ChineseAStar commented Jul 7, 2018

有一个下划线键值转小写驼峰形式的插件例子。
可是使用的时候发现,插件只会在方法执行结束后才会调用,这个时候结果都已经定型成了对象。如果是非map对象,好像无法获取数据库取得的数据。所以是不是这种问题一般不适合使用插件,而是使用mybatis配置文件中的setting设置。 @abel533

@abel533
Copy link
Contributor

abel533 commented Jul 8, 2018

map对象才需要插件特殊转。
POJO对象只需要配置自动转驼峰即可。

@ChineseAStar
Copy link
Author

好的,谢谢

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

2 participants