在spring boot启动main方法所在的类中加入

@MapperScan注入后报错:

Invalid default: public abstract java.lang.Class org.mybatis.spring.annotation.MapperScan.factoryBean()

 

解决方法:

在pom.xml中加入

<dependency>
    <groupId>org.mybatis.spring.boot</groupId>
    <artifactId>mybatis-spring-boot-starter</artifactId>
    <version>1.3.2</version>
    <scope>runtime</scope>
<dependency>

 

转载:

https://blog.csdn.net/qq_28286027/article/details/83013307

 

相关文章:

  • 2021-10-30
猜你喜欢
  • 2021-05-29
  • 2022-01-08
  • 2022-12-23
  • 2021-12-26
  • 2021-08-18
  • 2021-09-05
相关资源
相似解决方案