【发布时间】:2018-06-13 23:21:03
【问题描述】:
当我们尝试使用spring boot多数据源连接时出现JDBCConnection异常,前一天连接正常,但第二天出现连接异常,需要重启tomcat才能正常工作,可以任何body帮助我们了解导致连接在一段时间后关闭的确切属性
spring.xy.datasource.url=jdbc:mysql://azurnae-db013.xxx.yy.net:3306/devdb
spring.xy.datasource.username=user
spring.xy.datasource.password=pass
spring.xy.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.xy.datasource.pool-size=100
Below is the excpetion
could not prepare statement; nested exception is org.hibernate.exception.JDBCConnectionException: could not prepare statement",
【问题讨论】:
标签: mysql hibernate spring-boot jdbc