MyBatis-Spring-Boot icon indicating copy to clipboard operation
MyBatis-Spring-Boot copied to clipboard

mapper-spring-boot-starter 升级到1.2.0以后,Example执行报错

Open feiguzi opened this issue 8 years ago • 2 comments

debug的时候MapperScannerConfigurer.postProcessBeanDefinitionRegistry 没有执行,退回版本可以用

feiguzi avatar Jan 08 '18 08:01 feiguzi

我的mapperScan导包用这个 tk.mybatis.spring.annotation.MapperScan 下的就可以了...弄了一个钟,心累

Cicinnus0407 avatar Jan 08 '18 09:01 Cicinnus0407

Mapper-Starer 1.2.0 使用须知 使用1.2.0的时候需要满足下面三种情况之一

  1. 项目(间接)依赖中不包含官方的mybaitis-starter

  2. 使用tk提供的@MapperScan注解方式

  3. 在启动类上增加如下注解忽略

@EnableAutoConfiguration(
   exclude={org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration.class})
public class Application {

}

abel533 avatar Jan 09 '18 13:01 abel533