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 plus invaild bound statement #12

Open
zoeminghong opened this issue Aug 19, 2020 · 0 comments
Open

mybatis plus invaild bound statement #12

zoeminghong opened this issue Aug 19, 2020 · 0 comments
Labels

Comments

@zoeminghong
Copy link
Owner

描述:

在调用 mybatis plus 自带的方法的时候,报出 invaild bound statement 问题,在启动的时候也没有 mybatis logo 信息。所以我怀疑是 mybatis plus 没有启用。

网上有很多是通过自己实现 sqlSessionFactory 方式,但现在都 spring boot 年代,肯定不可能需要自己写,除非没有引入 boot-start 包。但由于使用的是公司内部的封装框架,本身就自带了 plus 相关的依赖,我以为已经引用了,所以觉得很奇怪的。用 Idea 查找 MybatisPlusAutoConfiguration 没有找到,估计就是没有引用该 boot start 包。

方案:

引用

        <dependency>
            <groupId>com.baomidou</groupId>
            <artifactId>mybatis-plus-boot-starter</artifactId>
        </dependency>

参考文档:

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

No branches or pull requests

1 participant