Skip to content
New issue

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

[BUG] SQL执行异常 #21

Open
showmethemoneyOK opened this issue Dec 14, 2022 · 0 comments
Open

[BUG] SQL执行异常 #21

showmethemoneyOK opened this issue Dec 14, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@showmethemoneyOK
Copy link

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); } }

@showmethemoneyOK showmethemoneyOK added the bug Something isn't working label Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant