本文主要是介绍Attribute statementType must be declared for element type procedure,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Attribute "statementType" must be declared for element type "procedure"
xml文件如下:
<procedure id="addOrders" parameterMap="ParaMap_order" statementType="CALLABLE"><![CDATA[{call Shop.Entry_Proc_Insert(?, ?, ?, ?, ?, ?)}]]>
</procedure>
数据库:sqlserver
持久层:ibatis
框架:struts2
错误原因为:
statementType不是procedure的属性。
备注:
declared:adj. 公然的;公开宣布的
Attribute "statementType" must be declared for element type "procedure"
表面意思是statementType必须在procedure中声明,一般会让人以为statementType得写在procedure中,其实是在procedure标签中没有statementType属性,所以在procedure中写statementType就错误,去掉。
这篇关于Attribute statementType must be declared for element type procedure的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!