【JavaWeb】SpringMvc 事物自动提交和自动关闭连接
配置文件中加入
//自动提交事物
<property name="hibernate.connection.autocommit">true</property>
//事物提交之后关闭数据库的连接
<property name="hibernate.connection.release_mode">after_transaction</property>
网络上志同道合,我们一起学习网络安全,一起进步,QQ群:694839022