Cause of No suitable driver found for

后端 未结 15 1676
佛祖请我去吃肉
佛祖请我去吃肉 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:18

    It might be that

    hsql://localhost

    can't be resolved to a file. Look at the sample program here:

    Sample HSQLDB program

    See if you can get that working first, and then see if you can take that configuration information and use it in the Spring bean configuration.

    Good luck!

提交回复
热议问题