-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Enabling lazy loading did not achieve the desired effect #1041
Comments
I seem to understand that the |
Hello @youngledo , Yes, in MyBatis, lazy loading means lazily executing nested SELECTs. |
OK, but I have a question, why does the configuration not provide lazy loading of Bean, but through "@ MapperScan?
|
These two are completely different and unrelated. |
Using the example code of this project, I enabled lazy loading, but found that it still loaded when starting.
My understanding is that when lazy loading is enabled, the following code will not execute without being called:
Here is my simplified code based on the example:
Other code has not been actively triggered or called:
The text was updated successfully, but these errors were encountered: