hibernate版本:3.3

使用hibernate插入数据后,show_sql能打印出sql语句出来

也没有显示什么异常,但是在数据库中没有记录

在hibernate.cfg.xml添加下面的语句后,问题解决。

<property name="connection.autocommit">true</property>

  

相关文章:

  • 2021-05-11
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
  • 2021-06-18
猜你喜欢
  • 2021-11-20
  • 2021-07-25
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
相关资源
相似解决方案