所有的东西都很简单,springboot整合mybatis,mybatis-plus
整合的时候xml的路径和接口的路径不是一个路径,所以单独配置:
mybatis:
mapper-locations: classpath*:mappers/**/*.xml
但是,死活不生效,查了好多资料都不行,查着查着突然看到mybatis-plus的配置,想想是不是会发生覆盖,于是一试,果然,改成如下配置就好:
mybatis-plus:
mapper-locations: classpath*:mappers/**/*.xml