springboot引入mybatis-plus后出现ClassNotFoundException: org.mybatis.logging.LoggerFactory

在引入mybatis-plus之前,是存在mybatis的包和pagehelper包的,把这两个注释掉就可以了。

分页就使用mybatis-plus自带的IPage。

        <!-- SpringBoot集成mybatis框架 -->
        <!--<dependency>-->
            <!--<groupId>org.mybatis.spring.boot</groupId>-->
            <!--<artifactId>mybatis-spring-boot-starter</artifactId>-->
            <!--<version>${mybatis.spring.boot.starter.version}</version>-->
        <!--</dependency>-->
        <dependency>
            <groupId>com.baomidou</groupId>
            <artifactId>mybatis-plus-boot-starter</artifactId>
            <version>3.2.0</version>
        </dependency>
        
        <!-- pagehelper 分页插件 -->
        <!--<dependency>-->
            <!--<groupId>com.github.pagehelper</groupId>-->
            <!--<artifactId>pagehelper-spring-boot-starter</artifactId>-->
            <!--<version>${pagehelper.spring.boot.starter.version}</version>-->
        <!--</dependency>-->

 

posted on 2019-11-05 21:28  Joequa  阅读(9299)  评论(0编辑  收藏  举报