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

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

hibernate struts2 spring整合的框架無法插入中文,報錯如下

hibernate struts2 spring整合的框架無法插入中文,報錯如下

fenkapian 2016-10-15 10:40:34
數(shù)據(jù)庫連接的properties文件已加上useUnicode=true&characterEncoding=utf8 數(shù)據(jù)庫表也已設(shè)置為utf-8Struts Problem ReportStruts has detected an unhandled exception:Messages:Incorrect string value: '\xE4\xB8\xAD\xE6\x96\x87' for column 'pname' at row 1Hibernate operation: could not insert: [com.umbrella.ssh.domain.Product]; uncategorized SQLException for SQL [insert into product (pname, price) values (?, ?)]; SQL state [HY000]; error code [1366]; Incorrect string value: '\xE4\xB8\xAD\xE6\x96\x87' for column 'pname' at row 1; nested exception is java.sql.SQLException: Incorrect string value: '\xE4\xB8\xAD\xE6\x96\x87' for column 'pname' at row 1File:com/mysql/jdbc/SQLError.javaLine number:1,056Stacktracesorg.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not insert: [com.umbrella.ssh.domain.Product]; uncategorized SQLException for SQL [insert into product (pname, price) values (?, ?)]; SQL state [HY000]; error code [1366]; Incorrect string value: '\xE4\xB8\xAD\xE6\x96\x87' for column 'pname' at row 1; nested exception is java.sql.SQLException: Incorrect string value: '\xE4\xB8\xAD\xE6\x96\x87' for column 'pname' at row 1????org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:83) ????org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80) ????org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80) ????org.springframework.orm.hibernate3.HibernateAccessor.convertJdbcAccessException(HibernateAccessor.java:424) ????org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:410) ????org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:412) ????org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:375) ????org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:684) ????com.umbrella.ssh.dao.ProductDao.save(ProductDao.java:11) ????com.umbrella.ssh.service.ProductService.save(ProductService.java:20) ????com.umbrella.ssh.service.ProductService$$FastClassBySpringCGLIB$$f8c996e2.invoke(<generated>)
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 2442 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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