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

為了賬號安全,請及時綁定郵箱和手機立即綁定

數據庫顯示亂碼,求老師幫忙

580d7c520001b68005000314.jpg

580d7c530001e0e705000135.jpg

數據庫編碼utf8了,jsp的也設置utf-8,但是就是一直報下面這個錯

ERROR - Data truncation: Data too long for column 'pname' at row 1

ERROR - Exception occurred during processing request: could not insert: [cn.test.ssh.domain.Product]; SQL [insert into product (pname, price) values (?, ?)]; nested exception is org.hibernate.exception.DataException: could not insert: [cn.test.ssh.domain.Product]

org.springframework.dao.DataIntegrityViolationException: could not insert: [cn.test.ssh.domain.Product]; SQL [insert into product (pname, price) values (?, ?)]; nested exception is org.hibernate.exception.DataException: could not insert: [cn.test.ssh.domain.Product]

at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:648)

at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)

at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:412)

at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:375)

at org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:684)

at cn.test.ssh.dao.ProductDao.save(ProductDao.java:16)


正在回答

0 回答

舉報

0/150
提交
取消
基于SSH實現員工管理系統之框架整合篇
  • 參與學習       49826    人
  • 解答問題       365    個

本視頻教程主要介紹環境搭建和SSH框架整合,逐層深入理解學習

進入課程

數據庫顯示亂碼,求老師幫忙

我要回答 關注問題
微信客服

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

幫助反饋 APP下載

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

公眾號

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