Mybatis 映射表的问题
<mappernamespace="org.funo.mapper.AppDao"><typeAliastype="org.funo.entity.to.TbAppApp...
<mapper namespace="org.funo.mapper.AppDao">
<typeAlias type="org.funo.entity.to.TbAppApply" alias="App" />
<update id="updateUrl" paramterType="App" >
update
tb_app_apply set
app_sicon_url=#{app.appSiconUrl,jdbcType=VARCHAR},
app_bicon_url=#{app.appBiconUrl,jdbcType=VARCHAR}
where
app_id=#{app.id,jdbcType=NUMERIC}
</update>
</mapper>
报错信息
### The error may exist in org/funo/mapconfig/App.xml
### The error occurred while processing mapper_resultMap[listUserApp]
### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException: Attribute "paramterType" must be declared for element type "update". 展开
<typeAlias type="org.funo.entity.to.TbAppApply" alias="App" />
<update id="updateUrl" paramterType="App" >
update
tb_app_apply set
app_sicon_url=#{app.appSiconUrl,jdbcType=VARCHAR},
app_bicon_url=#{app.appBiconUrl,jdbcType=VARCHAR}
where
app_id=#{app.id,jdbcType=NUMERIC}
</update>
</mapper>
报错信息
### The error may exist in org/funo/mapconfig/App.xml
### The error occurred while processing mapper_resultMap[listUserApp]
### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException: Attribute "paramterType" must be declared for element type "update". 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询