在spring boot的application.properties中,配置了mybatis.config-location=classpath:mybatis-config.xml mybatis.mapper-locations=classpath*:mapper/*.xml。这样相当于mapper的配置被配置了两遍。
应把mybatis-config.xml中的mappers部分删除
在spring boot的application.properties中,配置了mybatis.config-location=classpath:mybatis-config.xml mybatis.mapper-locations=classpath*:mapper/*.xml。这样相当于mapper的配置被配置了两遍。
应把mybatis-config.xml中的mappers部分删除