A ResourcePool could not acquire a resource from its primary factory or source

前端 未结 5 1386
清歌不尽
清歌不尽 2020-12-16 17:17

I\'m trying to connect to a database in Java, using jdbcTemplate and I\'m gettin the error below. I have Googled for a long time and all solutions I found didn\'t solve my p

5条回答
  •  一个人的身影
    2020-12-16 17:45

    In my case the problem was related with version mismach between MySQL and mysql-connector-java. After few days of headache I took out my ComboPooledDataSource module in a separate clean project and tried to connect with it to MySQL. However, I got stacktrace (unfortunatly I forgot what exactly were there), with which I understood that the problem is related with versions.

提交回复
热议问题