getSqlMapClientTemplate().insert("....","....");我用的是这个方法,当插入的属性违反了oracle唯一性约束后,06:18:33,610 INFO XmlBeanDefinitionReader:323 - Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]06:18:33,687 INFO SQLErrorCodesFactory:128 - SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase]报错了,但是程序再也不动了 怎么回事儿,插入正常值没问题我需要能抛出异常而且可以继续其他操作
添加回答
举报
0/150
提交
取消