Invalid bound statement (not found): com.xadc.webgis.system.mapper.VillageMa

@[TOC](解决 Invalid bound statement (not found): com.xxxx.xxxx)

解决 springboot+mybatis-plus Invalid bound statement (not found): com.xxxx.xxxx

先在application.yml中配置你的src/java/com.xxxx.xxxx,如下

###################  mybatis-plus配置  ###################
mybatis-plus:
  mapperlocations: classpath*:com/xadc/webgis/system/mapper/mapping/*Mapper.xml
  typeAliasesPackage: com.xadc.webgis.system.entity
  global-config:
    id-type: 0  #0:数据库ID自增   1:用户输入id  2:全局唯一id(IdWorker)  3:全局唯一ID(uuid)
    db-column-underline: false
    refresh-mapper: true
  configuration:
    map-underscore-to-camel-case: true
    cache-enabled: true #配置的缓存的全局开关
    lazyLoadingEnabled: true #延时加载的开关
    multiple  ResultSetsEnabled: true

接着在pom.xml中配置


        
            
                org.springframework.boot
                spring-boot-maven-plugin
            
        
        
            
                src/main/webapp
            
            
                src/main/resources
                true
            
            
                src/main/java
                
                    **/*.xml
                
            
        
    

你可能感兴趣的:(java)