Invalid bound statement (not found):

Invalid bound statement (not found): 使用注解可以操作数据库,使用xml时无法操作数据库

主要原因:1、在application.xml配置文件配置SqlSessionFactory的时候,要将mapper.xml等文件配置进去,<property name="mapperLocations" value="classpath*:repository/*Mapper.xml"/>

                   2、mapper接口要和mapper.xml的文件名一致

 

posted @ 2019-06-07 22:47  E_lian  阅读(800)  评论(0编辑  收藏  举报