首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

itbatis保存数据出错: Unhandled Exception thrown: class org.springframework.jdbc.Uncate

2012-01-21 
itbatis保存数据出错: Unhandled Exception thrown: class org.springframework.jdbc.UncateUnhandled Exc

itbatis保存数据出错: Unhandled Exception thrown: class org.springframework.jdbc.Uncate
Unhandled Exception thrown: class org.springframework.jdbc.UncategorizedSQLException
这个是不是配置文件的原因啊?
ibatis中配置文件:

XML code
<!--添加supplies_type-->    <insert id="insert_office_supplies_amount_addOStype" parameterClass="java.util.HashMap">        insert into office_supplies_amount(supplies_name,supplies_remark)         values(                #supplies_name:varchar#,                #supplies_remark:varchar#                )    </insert>


[解决办法]
<insert id="insert_office_supplies_amount_addOStype" parameterClass="java.util.HashMap">
insert into office_supplies_amount(supplies_name,supplies_remark) 
values(
#supplies_name#,
#supplies_remark#
)
</insert>
试试
[解决办法]
你的这个表中是否有supplies_name,supplies_remark这两个字段
另外按照楼上的改下试试

热点排行