Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有任何故障安全方法可以 100% 确定 Hibernate 正在使用什么缓存?即它是否使用EhCache 的其他东西?谢谢。
String cacheIntegrationName = ( (SessionFactoryImplementor) sessionFactory ) .getSettings() .getRegionFactory() .getClass() .getName();
当然,Hibernate 已经记录了“某事”。为记录器启用调试日志org.hibernate.cfg.SettingsFactory记录并查找“缓存区域工厂:XYZ”
org.hibernate.cfg.SettingsFactory