Machine translation:
When I was testing fetchType="lazy", Error creating lazy Proxy appeared.
I don't know if I'm missing something.
I use a org org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.4
After investigation, I found that mybatis fixed this problem when it was 3.5.0, but Now I'm using 3.5.6. I don't know why this problem is happening to me.
If you can confirm that there is no such problem on 3.5.6, I hope you can tell me and I will try to solve it by myself. I'm not sure if It's just me.
This is a demo of the code I'm testing
https://github.com/GuoDapeng/mybatis-demo
Here is the database file
doc/sql/database.sql
Here's another test
src/test/kotlin/icu/guodapeng/mybatisdemo/domain/UserRolesTests.kt
原文:
我在测试 fetchType="lazy" 的时候,出现了 Error creating lazy proxy。
我不清楚是不是我忽略了什么。
我使用的是 org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.4
我调查得知,mybatis 3.5.0 的时候修复过这个问题,我现在用的是 3.5.6。我不知道这个问题为啥发生在我身上。
如果能确认 3.5.6 是没有这个问题的,希望能告诉我,我尝试自己解决。我现在不确定是不是只有我出现了问题。
这是我测试代码的demo
这里有数据库文件
doc/sql/database.sql
这里又一个测试
src/test/kotlin/icu/guodapeng/mybatisdemo/domain/UserRolesTests.kt