我想用Actuator监控我的Spring boot应用程序,但是我找不到任何方法来计算SQL查询的最小/最大/平均时间。
我使用了hibernate.generate_statistics,但是它没有捕获Sql查询的执行时间。
有没有Hibernate测微仪可用于此目的?
发布于 2021-07-27 16:20:14
发布于 2021-08-03 11:37:51
添加hibernate微米依赖并使用SpringBoot 2.5.x或更高版本就足够了。不需要额外的配置。
不幸的是,我找不到旧SpringBoot的替代品,我自己也不能在SpringBoot 2.4.x上使用5.5.5
https://stackoverflow.com/questions/68525767
复制相似问题