program using hibernate does not terminate

前端 未结 13 838
孤街浪徒
孤街浪徒 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:10

    I had the same problem today, but I found another similar solution:

    I inserted at the end of my code the following line:

    StandardServiceRegistryBuilder.destroy(serviceRegistry);
    

    And Ta-dah! the program ends.

    0 讨论(0)
提交回复
热议问题