Exception in thread "main" org.springframework.dao.DataIntegrityViolationException: PreparedStatementCallback; SQL [update account set money = money - ? where username = ?]; Data truncation: Truncated incorrect DOUBLE value: 'xxx'; nested exception is com.mysql .jdbc.MysqlDataTruncation: Data truncation: Truncated incorrect DOUBLE value: 'xxx' at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:102) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:82) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:82) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:655) at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:876) at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:937) at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:947) at org.cwj.Dao.Imp.AccountDaoImp.out(AccountDaoImp.java:29) at org.cwj.Service.Imp.AccountServiceImp.trand(AccountServiceImp.java:33) at org.cwj.Text.Text.main(Text.java:29) Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Truncated incorrect DOUBLE value: 'xxx' at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4230)
12345678_0001
紫衣仙女
神不在的星期二
相关分类