亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

stuts+spring+ibats框架的應用問題

stuts+spring+ibats框架的應用問題

手掌心 2018-12-06 18:09:00
遇到的問題是我在頁面里添加了一個可以選擇的日期(時間框),但是選擇過日期之后,出現的問題是 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 什么原因呢?
查看完整描述

1 回答

?
慕村225694

TA貢獻1880條經驗 獲得超4個贊

類里定義的類型為date ?那你都說了讀取出來是字符串啊!需要轉換的!

查看完整回答
反對 回復 2018-12-16
  • 1 回答
  • 0 關注
  • 676 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號