--- The error occurred in sqlmap/test/test.xml.
--- The error occurred while applying a parameter map.
--- Check the test.update-InlineParameterMap.
--- Check the statement (update failed).
--- The error occurred while applying a parameter map.
--- Check the test.update-InlineParameterMap.
--- Check the statement (update failed).
--- Cause: java.sql.SQLException: 无效的 SQL 类型
这种情况先把sql放数据库里跑一跑,一般是SQL不对。我这个问题搞笑的是,当时两个工程有同样的sqlMap.xml,那SQL翻来覆去检查都没问题。最后才发现原来SQL放错工程了
本文记录了一次因SQL文件放置错误导致的映射异常问题,通过详细的错误信息定位问题所在,并最终解决了由于SQL文件放置不当引起的应用故障。
1212

被折叠的 条评论
为什么被折叠?



