program using hibernate does not terminate

前端 未结 13 842
孤街浪徒
孤街浪徒 2020-12-25 10:14

I created a program using Hibernate.

The program reaches the main function end, nevertheless the program is running.

I wonder if it happens when Sessio

13条回答
  •  自闭症患者
    2020-12-25 11:06

    I met this problem also today, and I found that the solution like:

    sessionFactory.close();
    

    will work if you have

    1
    

提交回复
热议问题