1. 程式人生 > >SpringBoot整合mybatis報錯org.apache.ibatis.binding.BindingException: Invalid bound statement not found異常

SpringBoot整合mybatis報錯org.apache.ibatis.binding.BindingException: Invalid bound statement not found異常

問題記錄
問題是:找不到你專案對映檔案(*.xml)
這裡寫圖片描述
在application.properties檔案中新增

mybatis.mapper-locations=classpath*:/mapper/**Mapper.xml 

如果屬性檔案是.yml的,新增

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