Attribute "resultType" must be declared for element type "update" or "insert"

仔细查看错误如图所示:

解决错误就是把resultType去掉,因为在insert和update语句中是没有返回值的。小坑小坑

转自:https://blog.csdn.net/u013144287/article/details/77328265

原文地址:https://www.cnblogs.com/isme-zjh/p/11764209.html

时间: 2024-10-06 21:52:27

Attribute "resultType" must be declared for element type "update" or "insert"的相关文章

Attribute name "aphmodel" associated with an element type "mxg" must be followed by the ' = ' charac

1.错误描述 org.apache.batik.transcoder.TranscoderException: null Enclosed Exception: Attribute name "aphmodel" associated with an element type "mxg" must be followed by the ' = ' character. at org.apache.batik.transcoder.XMLAbstractTransco

The prefix "p" for attribute "p:message" associated with an element type "bean"

报错的主要原因是因为,引用了spEL表达式,但是却没有引用相应的包 在bean.xml 中添加 xmlns:p="http://www.springframework.org/schema/p" <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi=&

[Fatal Error] :3:13: Open quote is expected for attribute &quot;{1}&quot; associated with an element type &quot;id&quot;.

用DOM解析XML时出现了如下错误: [Fatal Error] :3:13: Open quote is expected for attribute "{1}" associated with an  element type  "id".org.xml.sax.SAXParseException: Open quote is expected for attribute "{1}" associated with an  element t

Element type &quot;LinearLayout&quot; must be followed by either attribute specifications, &quot;&gt;&quot; or &quot;/&gt;&quot;的解决办法

看老师的word文档开始学习.复制了一段代码,在layout中新建了一个Android XML file,发现有提示错误. 代码如下: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"               android:layout_width=&

Open quote is expected for attribute &quot;property&quot; associated with an element type &quot;result&quot;.错误

java  Mybatis 框架下的项目 报   Open quote is expected for attribute "property" associated with an element type "result".    这个错 眼快使瞎了,终于找到了 错误写法: <result column="DELETE_STATUS" property=delete_status  jdbcType="VARCHAR"

Element type &quot;property&quot; must be followed by either attribute specifications, &quot;&gt;&quot; or &quot;/&gt;&quot;

Caused by: org.hibernate.InvalidMappingException: Unable to read XML at org.hibernate.util.xml.MappingReader.readMappingDocument(MappingReader.java:101) at org.hibernate.cfg.Configuration.add(Configuration.java:513) at org.hibernate.cfg.Configuration

The attribute required is undefined for the annotation type XmlElementRef

异常描述: 几天没用的项目导进Eclipse中发现有异常 public class BooleanFeatureType extends FeatureBaseType{ @XmlElementRef(name = "Value", namespace = "http://schemas.sean.com/ma/CA/OPM/", type = JAXBElement.class, required = false) protected JAXBElement<

The content of element type &quot;package&quot; must match &quot;(result-types?,interceptors?...

错误:“The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global-results?,global-exception-mappings?,action*)". ” 原因:package里元素必须按照一定的顺序排列: result

Ecliplse 重命名后web.xml 报错Attribute &quot;xmlns&quot; was already specified for element &quot;web-app&quot;.

报错信息:Attribute "xmlns" was already specified for element "web-app" 由于项目的重命名,出现了xmlns的重复赋值,这可能是eclipse自己设定的一种方式,重新为项目匹配合适的配置. <web-app xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns=”http://java.sun.com/xml/ns/javaee” xm