今天用MyBatis保存数据的时候突然发现报错了!
org.apache.ibatis.exceptions.PersistenceException:
values
('杭州西湖湖' at line 2"
初步估计应该是因为保存的字符串有双引号的关系!求大神致电如何解决这种问题 keyProperty="id" useGeneratedKeys="true">
insert into News
(desc,link,pubDate,source,title,channelId,imageurls)
values
(#{desc},#{link},#{pubDate},#{source},#{title},#{channelId},#{imageurls})
http://www.iteye.com/problems/79946
放在这里面 <![CDATA[。。。。]]>
<![CDATA[and (t.manul_process_code <> 'D' or t.manul_process_code is null)]]>