Skip to content
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

你好,请问为什么我使用关联关系的时候会报这个错误。是我哪里没有配置对吗? #31

Open
Lazybin opened this issue Nov 7, 2022 · 4 comments

Comments

@Lazybin
Copy link

Lazybin commented Nov 7, 2022

image

@xutengx
Copy link
Member

xutengx commented Nov 7, 2022

你好,发一下相关的实体的定义,以及业务调用的代码。

@Lazybin
Copy link
Author

Lazybin commented Nov 8, 2022

image
image
image
实体的model都是通过这种方式自动生成的
image

@xutengx
Copy link
Member

xutengx commented Nov 8, 2022

尝试在 BaseModel 中的 gaarasonDataSource 成员变量上,增加 @org.springframework.context.annotation.Lazy 注解。

@Lazybin
Copy link
Author

Lazybin commented Nov 8, 2022

加上注解之后可以了!谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants