Does the XML file support overloading based on considerations #3073
Unanswered
panther125
asked this question in
Q&A
Replies: 1 comment
-
Hello @panther125 , I guess you are talking about overloaded methods in the same interface. public interface Mapper {
User select(Integer id);
User select(Integer id, String name);
} Then, MyBatis does not support it. If I misunderstood you, please explain using some code/XML instead of words. |
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
-
Recently, when merging code, it was discovered that there are two identical mapper interfaces, but the parameters passed in are different. Both need to be left, but the IDs corresponding to the mapper cannot be the same.
Beta Was this translation helpful? Give feedback.
All reactions