整合一Ibatis,竟然报错了!
[color=red][quote] Attribute "polumn" must be declared for element type "result".[/quote][/color]
很明显,在"result" 中没有定义"polumn"属性。
奇怪了,哪儿来的 polumn属性啊?看源码吧!
看了源码发现了问题根结。
真够“细心”的啊,晕死,这样的错误可千万没下次!
[size=large]一般情况下[/size]
[quote]Ibatis : Attribute "*" must be declared for element type "*".[/quote]
[size=large]报这样的错误多是在开发ibatis时,xml文件属性有误![/size]
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXParseException: Attribute "polumn" must be declared for element type "result".
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:53)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:86)
... 62 more
Caused by: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXParseException: Attribute "polumn" must be declared for element type "result".
at com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:123)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:84)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:102)
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:72)
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:51)
... 63 more
[color=red][quote] Attribute "polumn" must be declared for element type "result".[/quote][/color]
很明显,在"result" 中没有定义"polumn"属性。
奇怪了,哪儿来的 polumn属性啊?看源码吧!
看了源码发现了问题根结。
<result property="repAreaAptorTime" polumn="repAreaA_Time" />
<result property="repTownActorTime" polumn="repTownA_Time" />
<result property="repVilActorTime" polumn="repVilA_Time" />
真够“细心”的啊,晕死,这样的错误可千万没下次!
[size=large]一般情况下[/size]
[quote]Ibatis : Attribute "*" must be declared for element type "*".[/quote]
[size=large]报这样的错误多是在开发ibatis时,xml文件属性有误![/size]