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

第8章 MyBatis插件开发 8.4.1 PageInterceptor拦截器类, 初始化 MappedStatement 报错。 #76

Open
dear-Alice-moon opened this issue Oct 19, 2019 · 0 comments

Comments

@dear-Alice-moon
Copy link

在 PageInterceptor.java 文件中,初始化 MappedStatement 时报错,我不知道该如何解决!

// 根据当前的ms创建一个返回值为Long类型的ms
MappedStatement countMs = new MappedStatement(ms, Long.class); // 这种写法报错
报错内容提示: The constructor MappedStatement(MappedStatement, Class) is undefined

MappedStatement countMs = new MappedStatement(); // 这种写法也报错
报错内容提示: The constructor MappedStatement() is not visible.

我使用的jar包版本如下:

org.mybatis mybatis 3.4.6

还望刘老师能够解惑,谢谢。

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

1 participant