Cause of No suitable driver found for

后端 未结 15 1688
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-14 02:17

I\'m trying to unit test (JUnit) a DAO i\'ve created. I\'m using Spring as my framework, my DAO (JdbcPackageDAO) extends SimpleJdbcDaoSupport. The testing class (JdbcPacka

15条回答
  •  生来不讨喜
    2020-12-14 03:11

    Can you import the driver (org.hsqldb.jdbcDriver) into one of your source files? (To test that the class is actually on your class path).

    If you can't import it then you could try including hsqldb.jar in your build path.

提交回复
热议问题