- JAVAmybatispojo.xml配置问题
-
聚码交流
-
0
1

- yhuxAvNbtxUM
0000-00-00 00:00:00
- 回帖
刚学JAVA,参照例子写的,跑不起来,报错是:org.apache.ibatis.exceptions.PersistenceException:###ErrorbuildingSqlSession.###Theerrormayexistinmapper/User.xml###Cause:org.apache.ibatis.builder.BuilderException:ErrorparsingSQLMapperConfiguration.Cause:org.apache.ibatis.builder.BuilderException:Errorcreatingdocumentinstance.Cause:org.xml.sax.SAXParseException;lineNumber:10;columnNumber:77;值为"pojo.User"的属性"resultSetType"必须具有列表"FORWARD_ONLYSCROLL_INSENSITIVESCROLL_SENSITIVE"中的值。我的写法是这样的<mappernamespace="test"><selectid="findUserByID"parameterType="int"resultSetType="pojo.User">SELECT*FROM`user`WHEREid=#{id};</select></mapper>写了pojo.User,提示错误不太知道这里路劲该怎么写,项目目录如图