关于Consider defining a bean of type xxx in your configuration.

如果所有的代码和注解都没有问题&#xff0c;并且也试过配置Spring容器扫描&#xff0c;都没有效果的话&#xff0c;可以检查一些自己的pom.xml文件里面的mybatis的起步依赖版本是否正确 <

如果所有的代码和注解都没有问题,并且也试过配置Spring容器扫描,都没有效果的话,可以检查一些自己的pom.xml文件里面的mybatis的起步依赖版本是否正确

<!-- mybatis起步依赖 -->
        <dependency>
            <groupId>org.mybatis.spring.boot</groupId>
            <artifactId>mybatis-spring-boot-starter</artifactId>
            <version>3.0.3</version>
        </dependency>

发布者:admin,转转请注明出处:http://www.yc00.com/web/1738332842a4038307.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信