-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
如何兼容MybatisPlus 3.5.5 和 PageHelper 2.1.0 ? #802
Comments
我之前用的是 MybatisPlus 3.5.3.1(JsqlParser 4.4)和 PageHelper 2.1.0(JsqlParser 4.7),可以正常使用,今晚更新了下 MybatisPlus 到 3.5.5(JsqlParser 4.6) 就启动不了了,这是为什么呢? 我把 PageHelper 降到 2.0.0(JsqlParser 4.5)是可以正常使用的 |
排除mybatisplus的4.6试试 |
@abel533 |
@qichhhhh 试试再排除掉MybatisPlus中的JsqlParser 4.6,只保留PageHelper的sqlparser4.5。 |
这种情况可以正常使用,但是 MybatisPlus 中用的是老版本,不会有兼容性问题吗? |
启动时会因为 JsqlParser 版本冲突导致报错
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration': Invocation of init method failed; nested exception is java.lang.BootstrapMethodError: java.lang.IllegalAccessError: no such constructor: com.github.pagehelper.parser.defaults.DefaultCountSqlParser.<init>()void/newInvokeSpecial
MybatisPlus 3.5.5 -> JsqlParser 4.6
PageHelper 2.1.0 -> JsqlParser 4.7
我应该如何修改 pom ?
2.1.0 的更新公告里只有4.5和4.7两个版本的,也没有4.6呀。。
The text was updated successfully, but these errors were encountered: