Cause of No suitable driver found for

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

    As some answered before, this line of code solved the problem

    Class.forName("org.hsqldb.jdbcDriver");
    

    But my app is running in some tomcats but only in one installation I had to add this code.

提交回复
热议问题