遇到的問題是我在頁面里添加了一個可以選擇的日期(時間框),但是選擇過日期之后,出現(xiàn)的問題是
ERROR com.txkj.business.inform.dao.BMInformDao - org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; --- The error occurred in config/ibatis/BMInform.xml. --- The error occurred while applying a result map. --- Check the getBMInform-AutoResultMap. --- Check the result mapping for the 'INFOR_TIME' property. --- Cause: java.sql.SQLException: An SQLException was provoked by the following failure: java.lang.NumberFormatException: For input string: " 02"; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in config/ibatis/BMInform.xml. --- The error occurred while applying a result map. --- Check the getBMInform-AutoResultMap. --- Check the result mapping for the 'INFOR_TIME' property. --- Cause: java.sql.SQLException: An SQLException was provoked by the following failure: java.lang.NumberFormatException: For input string: " 02"2013-06-07 17:48:08,763 [http-8080-1] ERROR com.txkj.business.inform.action.BMInformAction - getBMInform error:java.lang.Exception: org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; --- The error occurred in config/ibatis/BMInform.xml. --- The error occurred while applying a result map. --- Check the getBMInform-AutoResultMap. --- Check the result mapping for the 'INFOR_TIME' property. --- Cause: java.sql.SQLException: An SQLException was provoked by the following failure: java.lang.NumberFormatException: For input string: " 02"; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in config/ibatis/BMInform.xml. --- The error occurred while applying a result map. --- Check the getBMInform-AutoResultMap. --- Check the result mapping for the 'INFOR_TIME' property. --- Cause: java.sql.SQLException: An SQLException was provoked by the following failure: java.lang.NumberFormatException: For input string: " 02"
有人說是這個'INFOR_TIME'的類型有問題,我在實體類里定義的類型為date,它默認讀取出來的是一串字符串,即:Fri Jun 07 17:52:00 CST 2013
什么原因呢?
添加回答
舉報
0/150
提交
取消