我因该死的依赖性问题而被封锁了两天,所以我决定分享解决方案;-)。
通过Maven运行功能测试时出现以下错误:
Invalid content was found starting with element 'db:generic-config'.
One of '{"http://www.springframework.org/schema/beans":beans, ..."}' is expected
Mule xml引用了数据库配置,如下所示:
<db:generic-config name="mf-connector-thebes"
url="${url}"
driverClassName="${driver}"
doc:name="Generic Database Configuration" >
</db:generic-config>
要解决此问题,只需将以下依赖项添加到pom.xml文件中:
<dependency>
<groupId>org.mule.modules</groupId>
<artifactId>mule-module-db</artifactId>
<version>${mule.version}</version>
<scope>provided</scope>
</dependency>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句