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,如需转载请自行联系原作者

相关文章
|
3月前
|
CDN
Iconfont——Error: <path> attribute d: Expected number, "MNaNNaNaNaNNaNNaN…".
Iconfont——Error: <path> attribute d: Expected number, "MNaNNaNaNaNNaNNaN…".
37 0
|
4月前
|
JSON Java 数据格式
JSON parse error: Unexpected character (‘t‘ (code 116)): was expecting double-quote to start field n
JSON parse error: Unexpected character (‘t‘ (code 116)): was expecting double-quote to start field n
【已解决】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
2548 0
【已解决】Error: Element type is invalid: expected a string (for built-in components) or a class/function
|
6月前
Parsing error: The keyword ‘const‘ is reserved
Parsing error: The keyword ‘const‘ is reserved
Unknown custom element: <add-employee> - did you register the component correctly? For red cursive c
原因: 1.组件名没写对(导入和注册不对应) 2.components少写了个s 3.组件命名最好是驼峰命名 4.导入时语法错误 5.代码中有两个components,后一个的值把前一个覆盖了 6.组件直接循环套用了
|
11月前
DeprecationWarning:current URL string parser is deprecated, and will be removed in a future version.
DeprecationWarning:current URL string parser is deprecated, and will be removed in a future version.
|
6月前
|
JSON Java 数据格式
Could not extract response: no suitable HttpMessageConverter found for ..content type [text/html...]
Could not extract response: no suitable HttpMessageConverter found for ..content type [text/html...]
673 0
|
6月前
'WebDriver' object has no attribute 'find_element_by_tag_name'
'WebDriver' object has no attribute 'find_element_by_tag_name'
313 0
jstl错误:According to TLD or attribute directive in tag file, attribute value does not accept any expr
jstl错误:According to TLD or attribute directive in tag file, attribute value does not accept any expr
使用pageHelper报错 Type definition error: [simple type, classXXXX]
使用pageHelper报错 Type definition error: [simple type, classXXXX]