springboot集成mybatis-plus无法扫描到mapper.xml,因为xml文件没有在resources文件下,无法被扫描到所以需要修改配置

Property 'mapperLocations' was not specified or no matching resources found

 修改yml文件

mybatis-plus:
  mapper-locations: classpath*:**/mapper/xml*/*.xml*   #配置正确的文件路径
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  global-config:
    banner: false

 pom文件


   
      
         
         src/main/java
         
            **/*.xml
         
      
      
      
         src/main/resources
      
   

你可能感兴趣的:(spring,boot,mybatis,xml)