mysql连接关闭后不允许进行任何操作

时间:2019-05-30 19:16:33

标签: java mysql

我不只是开始就警告我  (连接关闭后不允许进行任何操作。)

## dataSource
  datasource:
    driver-class-name: com.mysql.jdbc.Driver
    url: jdbc:mysql://xx.xx.xx.xx:3306/myproject?useSSL=false&characterEncoding=utf-8
    username: root
    password: 123

这是警告日志

2019-05-31 03:07:00.780  WARN 1640 --- [nio-8080-exec-6] com.zaxxer.hikari.pool.PoolBase          : HikariPool-1 - Failed to validate connection com.mysql.jdbc.JDBC4Connection@4ea6ccc3 (No operations allowed after connection closed.)

和错误

org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is org.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection

看起来好像建立连接有误吗?

0 个答案:

没有答案