【发布时间】:2019-07-11 18:03:02
【问题描述】:
在我的 Spring Boot 应用程序中,我正在使用这些配置:
logging.level.org.hibernate.SQL=DEBUG
logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
打印休眠查询,然后打印参数值。
@Query( value="select h from Human h inner join com.human.Card c on c.humanId = h.id where h.card.status in :statuses " )
Page<Human> getHumanByStatus(@Param(statuses) List<Status>, Pageable pageable);
将查询打印的日志记录在没有列表值的情况下
【问题讨论】:
标签: hibernate spring-boot spring-data