Repository navigation
Replies: 1 comment 2 replies
|
If you wrote plugins, is this your logic? What do you want to know from us? |
2 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.
The company's system uses mybatis as the ORM framework, so DAO adopts the form of interface+XML file. If I want to intercept DAO methods to track time and input/output parameters, what should I do
I tried to refer to the Mybatis plugin and achieve my goal by intercepting the DefaultSqlSession, but there was a problem with this approach. During link tracing, all DB operations were displayed as the DefaultSqlSession, and I couldn't distinguish the specific DAO method. I also tried to customize the annotation method for tracing, but I found that it didn't support interfaces, so I had no choice but to seek some help. The specific effects are as follows:

All reactions