第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

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

MyBatis日期類型 如何與SQLServer和java中的日期匹配的,

MyBatis日期類型 如何與SQLServer和java中的日期匹配的,

22不小了 2015-08-02 11:29:12
SQL Server 的SQL語句: ???ID???????????????????int?????????????????? ???CreateTime???????????Timestamp???????? ???FileAdd??????????????varchar(100)MyBatis配置:?<resultMap?type="instrrmentmodel"?id="instrrmentmodelMap"> ????????<id?property="ID"?column="ID"/> ???????<result?property="CreateTime"?column="CreateTime"??javaType="java.sql.Timestamp"?jdbcType="TIMESTAMP"/>? ????????<result?property="FileAdd"?column="FileAdd"/> ????</resultMap>TInstrrmentModel實(shí)體類部分代碼:???? private? Integer??? ID? ;?????????????? ??? ?private?? Timestamp? CreateTime ;??????????? ???? private String?? FileAdd??? ;?public String? getCreateTime() {?? ??? ?return? new SimpleDateFormat("yyyy:MM:DD").format(CreateTime);?? ?}?? ?public void setCreateTime(Timestamp createTime) {?? ??? ??? ??? ?CreateTime = createTime;?? ?}無條件查結(jié)果:嚴(yán)重: Servlet.service() for servlet [MVC] in context with path [/EnterpriseEMS] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database.? Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for sbzy.enterpriseems.model.domain.InstrrmentModel.selectList### Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for sbzy.enterpriseems.model.domain.InstrrmentModel.selectList] with root causejava.lang.IllegalArgumentException: Mapped Statements collection does not contain value for sbzy.enterpriseems.model.domain.InstrrmentModel.selectList這個數(shù)據(jù)類型如何匹配呢!要命的很搞了半天
查看完整描述

1 回答

?
慕粉4165865

TA貢獻(xiàn)1條經(jīng)驗(yàn) 獲得超0個贊

?javaType="java.sql.Timestamp"要用工具的時間戳,應(yīng)該是?javaType="java.util.Timestamp"

查看完整回答
反對 回復(fù) 2017-04-25
  • 1 回答
  • 1 關(guān)注
  • 7016 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號