mybatis-plus在mapper.xml自定义sql问题

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>

 

posted @ 2020-03-11 22:32  一月1  阅读(6976)  评论(0编辑  收藏  举报