We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
public static Connection getConnection() { try { //TODO 每一次获取都会有一个新的数据库连接不会被关闭,只能通过mysql配置超时进行关闭。。。 // ebean中的Connection是有事务的需要进行提交 否则会事务超时 Connection connection = DB.getDefault().dataSource().getConnection(); connection.setAutoCommit(true); return connection; } catch (SQLException e) { LOGGER.error("获取数据库连接出错", e); throw new DatabaseException(e); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
public static Connection getConnection() { try { //TODO 每一次获取都会有一个新的数据库连接不会被关闭,只能通过mysql配置超时进行关闭。。。 // ebean中的Connection是有事务的需要进行提交 否则会事务超时 Connection connection = DB.getDefault().dataSource().getConnection(); connection.setAutoCommit(true); return connection; } catch (SQLException e) { LOGGER.error("获取数据库连接出错", e); throw new DatabaseException(e); } }
The text was updated successfully, but these errors were encountered: