SpringBoot整合MybatisPlus,yml中配置mybatis.mapperLocations,扫描Mapper.xml

mybatis-plus:
  mapper-locations: classpath:mapper/*.xml

创建在resources目录下 ->创建mapper目录->创建xxx.xml文件

你可能感兴趣的:(springboot,spring,boot,intellij-idea,java)