windows上运行没问题,Linux部署时Invalid bound statement (not found)
windows上运行没问题,Linux部署时mapper接口和xml没有绑定成功
今天部署项目时,批量插入数据数据时,报错。
Invalid bound statement (not found): com.example.mapper.ListShowMapper.insertOrUpdateShortLinks] with root cause

 在网上找了很多的绑定问题上检查并没有问题,最终在大哥们的帮助下,发现了问题所在。(/ω\)
 在修改配置文件时,做了配置修改,但是
 
mybatis:
  configuration:
    map-underscore-to-camel-case: true
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  # 配置Mapper.xml地址
  mapper-locations: classpath:mapper/*.xml
  # 配置实体地址,即映射类所在包名
  type-aliases-package: com.example.entity
最终解决:
启动还是在Linux上行不通,在本地运行没问题。排查到Docker镜像构建时运行的卷轴挂载的其他配置文件,原先的修改没有生效,这里需要替换掉Linux上卷轴挂载的配置文件。

 
                    
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号