用户登录
用户注册

分享至

hibernate sql-type

  • 作者: 搞笑娱乐纯属虚构如有雷同实属搬砖
  • 来源: 51数据库
  • 2020-10-31
true 加入hibernate.cfg.xml



  试试
log4j.logger.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
log4j的级别,要对应

更早期的
log4j.logger.org.hibernate.type=TRACE

log4j.logger.org.hibernate.sql=TRACE



  在定义数据库和数据库属性的文件applicationconfig.xml里面,把hibernate.show_sql 设置为true
这样生成的sql就会在控制台出现了注意:这样做会加重系统的负担,不利于性能调优
软件
前端设计
程序设计
Java相关