Hibernate isclosed method: judge whether the sessionfactory object is closed
•
Java
isClosed()
Example
if(sessionFactory.isClosed()){ //判断SessionFactory对象是否关闭 System.out.println("SessionFactory已经关闭"); }else{ System.out.println("SessionFactory未关闭"); }
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码