No suitable driver found for jdbc:h2:tcp

后端 未结 2 1673
执念已碎
执念已碎 2021-01-19 14:11

an java.sql.SQLException: No suitable driver found for jdbc:h2:tcp://localhost/~/ZadatakDB is thrown when I try to connect to h2 database using a java web application.

2条回答
  •  执笔经年
    2021-01-19 14:43

    For a maven project ensure that of com.h2database dependency is not set to test. I removed the scope completely for my dependency and the issue was resolved.

提交回复
热议问题