Ibatis - Open quote is expected for attribute "{1}" associated with an element type '

简介:

昨天晚上提交的代码,今天运行起来,始终报错:

 Open quote is expected for attribute "{1}" associated with an  element type 'id',查了半天,觉得很奇怪。

回滚到昨天的代码,运行正常。经过compare代码,发现自己将ibatis配置文件App.xml的修改为了, 真是晕倒。不经意的笔误,害自己查了一个上午。

 
  1. <delete id=delete> 
  2.     <![CDATA[ 
  3.         DELETE FROM app WHERE 
  4.         id = #id#  
  5.     ]]> 
  6.     </delete> 

正确的为如下:

 
  1. <delete id="delete"> 
  2.     <![CDATA[ 
  3.         DELETE FROM app WHERE 
  4.         id = #id#  
  5.     ]]> 
  6.     </delete> 

靠...

 

 本文转自 tianya23 51CTO博客,原文链接:http://blog.51cto.com/tianya23/831546,如需转载请自行联系原作者

相关文章
|
7月前
|
XML C# 数据格式
C#报错 The ‘xmins‘ attribute is not supported in this context
System.Xml.Schema.XmlSchemaException:“The ‘xmins’ attribute is not supported in this context.”异常的解决百度翻译:System.Xml.Schema.XmlSchemaException:“此上下文中不支持”xmins“属性。”这是在使用System.Data.DataSet的ReadXml读取x...
49 0
C#报错 The ‘xmins‘ attribute is not supported in this context
|
4月前
Argument of type 'XX' is not assignable to parameter of type 'XX'
Argument of type 'XX' is not assignable to parameter of type 'XX'
|
10月前
Unknown custom element: <add-employee> - did you register the component correctly? For red cursive c
原因: 1.组件名没写对(导入和注册不对应) 2.components少写了个s 3.组件命名最好是驼峰命名 4.导入时语法错误 5.代码中有两个components,后一个的值把前一个覆盖了 6.组件直接循环套用了
【已解决】Error: Element type is invalid: expected a string (for built-in components) or a class/function
Error: Element type is invalid: expected a string (for built-in components) or a class/function
2312 0
【已解决】Error: Element type is invalid: expected a string (for built-in components) or a class/function
|
5月前
'WebDriver' object has no attribute 'find_element_by_tag_name'
'WebDriver' object has no attribute 'find_element_by_tag_name'
118 0
|
6月前
|
JavaScript 前端开发
element-plus 报错 TypeError: Cannot read properties of undefined (reading ‘setCheckedKeys‘)
element-plus 报错 TypeError: Cannot read properties of undefined (reading ‘setCheckedKeys‘)
119 0
|
7月前
|
人工智能 自然语言处理 语音技术
Invalid prop: type check failed for prop “index“. Expected String with value “5“问题解决
Invalid prop: type check failed for prop “index“. Expected String with value “5“问题解决
52 0
|
10月前
使用pageHelper报错 Type definition error: [simple type, classXXXX]
使用pageHelper报错 Type definition error: [simple type, classXXXX]
|
11月前
|
Java 微服务
Malformed markup: Attribute “prop“ appears more than once in element
Malformed markup: Attribute “prop“ appears more than once in element
132 0
|
12月前
|
Python
AttributeError: type object ‘Image‘ has no attribute ‘open‘
原因分析:Image调用顺序出错,因为第一行的from PIL import Image与第二行tkinter import *冲突,tkinter中也含有Image类,所以你使用的是tkinter.Image
168 0