Invalid bound statement (not found):
没有找到mapper
mapper位置:
在yml文件中配置以下代码:
mybatis:
type-aliases-package: com.xh.java.pojo
mapper-locations: classpath:mapper/*.xml
并且在pom.xml文件中添加:
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</build>