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

前端 未结 5 1383
清歌不尽
清歌不尽 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:55

    For anyone that finds this question in the future. What I was doing wrong was that I was using the jtds driver and I forgot to add that in the url. So in my properties file what I should have done was:

    app.url=jdbc:jtds:sqlserver://myUrl:port;databaseName=my_database
    

提交回复
热议问题