Java – when to use hibernate connection. provider_ class

When should I use hibernate connection. provider_ class? Me and 'hibernate connection. diver_ There is a bit of confusion between 'class'

provider_ Class may be useful for connection pooling

There are any other providers we can use_ What's the purpose of class?

Solution

Another use of connection providers is to maintain sessions over time, especially for the combination of MySQL and hibernate If you do not have a properly configured connection provider to handle timeouts from mysql, you are likely to disconnect from the database sooner or later if you are inactive for a period of time

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
分享
二维码
< <上一篇
下一篇>>