qq_36696855
qq_36696855
2017-04-20 06:40

spring+hibernate操作数据库,可以查询数据,但是不能添加数据

10
  • spring
  • 数据
  • 调试
  • hibernate
  • 数据库

图片说明图片说明! 2017-04-20 14:10:46,066 [main] DEBUG [org.hibernate.engine.spi.ActionQueue] - Executing identity-insert immediately
2017-04-20 14:10:46,080 [main] DEBUG [org.hibernate.SQL] - insert into t_user2 (password, user_name) values (?, ?)
Hibernate: insert into t_user2 (password, user_name) values (?, ?)
2017-04-20 14:10:46,121 [main] DEBUG [org.hibernate.resource.jdbc.internal.ResourceRegistryStandardImpl] - HHH000387: ResultSet's statement was not registered
2017-04-20 14:10:46,124 [main] DEBUG [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] - could not insert: [com.lk.domain.User] [insert into t_user2 (password, user_name) values (?, ?)]
java.sql.SQLException: Invalid value for getInt() - '��

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

7条回答

为你推荐

换一换