springboot配置时出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

1:查看mapper的xml配置文件没有被编译,

2:在pom文件中添加,

<resource>
   <directory>src/main/java/</directory>
   <includes>
      <include>**/*.xml</include>
   </includes>
   <filtering>false</filtering>
</resource>

结构如图:

猜你喜欢

转载自blog.csdn.net/qq_37746483/article/details/82877323
今日推荐