1.运行报错

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

原因:idea下运行

(mybatis使用问题)mapper class在IDEA中不生效原因

解决方案:

在pom文件中加入:

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

 

 

相关文章:

  • 2021-10-17
  • 2021-06-14
  • 2022-12-23
  • 2021-04-07
  • 2021-11-23
  • 2021-05-28
  • 2021-06-01
  • 2022-12-23
猜你喜欢
  • 2021-04-05
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2021-04-05
  • 2022-12-23
  • 2021-05-28
相关资源
相似解决方案