在mybatis-plus的yml配置中
mybatis-plus:
config-location: classpath:sqlMapConfig-spring.xml
mapper-locations: classpath*:mapper/*.xml
# 别名配置
#type-aliases-package: com.tyj.domain
configuration:
log-impl: org.apache.ibatis.logging.log4j.Log4jImpl
不能同时配置config-location:和configuration。两者会冲突。可以选择配置config-location,然后再xml文件中配置configuration的内容。