在WildFly环境中,我可以定义hibernate中查询的超时,这是persistence.xml吗?默认值是多少?
<persistence>
<persistence-unit name="my-pu">
<properties>
<property name="javax.persistence.lock.timeout" value="2000"/>
<property name="javax.persistence.query.timeout" value="2000"/>
</properties>
</persistence-unit>
</persistence>发布于 2022-11-07 11:03:59
不确定要实现什么,但我认为最好为数据库用户配置语句超时或事务超时。尽管如此,在persistence.xml中配置这个应该是很好的。
https://stackoverflow.com/questions/74197133
复制相似问题