Replies: 2 comments
-
There are typically two ways to inject objects in spring application: getter or constructor. Are we on the same page? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Getter is not necessary if MyBatis can access your field via reflection. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I understand that the object delivered from the interface with @Mapper needs to have a getter to be delivered to the database, but even if you don't apply a getter, it's properly delivered to the database, so I'm wondering if it's right not to apply a getter.
Beta Was this translation helpful? Give feedback.
All reactions