mybatis-plus在mapper.xml中自定义查询语句时报如下错误:(找不到自定义的查询方法)

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.company.management.system.mapper.ManageChatMessageMapper#selectLastMessageList

解决方法:在pom.xml <build>中添加如下:

<build>
<resources>
    <resource>
        <directory>src/main/resources</directory>
    </resource>
    <resource>
        <directory>src/main/java</directory>
        <includes>
            <include>**/*.xml</include>
        </includes>
    </resource>
</resources>
</build>

 

相关文章:

  • 2022-12-23
  • 2021-12-23
  • 2021-04-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案