![](/style/images/good.png)
6
![](/style/images/bad.png)
使用 mybatis plus, springboot 启动特别慢,初始化 addMappedStatement 耗时很久
source link: https://www.v2ex.com/t/793983
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
我看也有 issue 问了,换来的一顿嘲讽
https://github.com/baomidou/mybatis-plus/issues/1154
最近也一直在排查这个问题,还没有思路,mp 内置了很多原生的,但是遇到几百个上千个表的工程,这个启动速度就很可怕了
18 条回复 • 2021-08-06 14:42:40 +08:00
cxshun 1 天前
几百上千个表的不是应该考虑拆分服务了,不只 Entity 和 Repository 的问题,单单什么 Service, Controller 啥的扫描都要挺久了。所以应该考虑的是缩小规模。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK