0
点赞
收藏
分享

微信扫一扫

Driver for test database type [H2] is not available in the classpath

鱼板番茄 2022-07-14 阅读 60


反复测试 报错  

 

 [DUBBO] Error creating bean with name 'dataSource': Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'databaseType' threw exception; nested exception is java.lang.IllegalStateException: Driver for test database type [HSQL] is not available in the classpath, dubbo version: 2.5.4, current host: 127.0.0.1
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource': Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'databaseType' threw exception; nested exception is java.lang.IllegalStateException: Driver for test database type [HSQL] is not available in the classpath

查看好久发现 原来是 idea工具 在 事务的配置文件下 加了一段引用dataSource的无用代码

<jdbc:embedded-database id="dataSource"/>

把它去掉就ok了 mark一下

举报

相关推荐

0 条评论