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

请问整合mybatis扫描不同包的pojo #41

Open
lgsd2018 opened this issue Dec 5, 2019 · 1 comment
Open

请问整合mybatis扫描不同包的pojo #41

lgsd2018 opened this issue Dec 5, 2019 · 1 comment

Comments

@lgsd2018
Copy link

lgsd2018 commented Dec 5, 2019

请问怎么扫描bean实体类成别名啊,就是放在不同的包下!急用!!

@songsongDBB
Copy link

mybatis.type-aliases-package=cn.byzt.bean
只需要将 javaBean 的路径配置到 springboot 的配置文件中,这里如果是多个路径,用英文逗号分隔多个即可
这里支持通配符配置,配置如下:
mybatis.type-aliases-package=cn.byzt.*.bean

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