gpt4 book ai didi

java - Mule 编译失败,maven : Invalid content was found starting with element 'db:generic-config'

转载 作者:行者123 更新时间:2023-11-29 03:08:47 24 4
gpt4 key购买 nike

我因为一个该死的依赖问题被屏蔽了两天,所以我决定分享解决方案 ;-)。

我在通过 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>

关于java - Mule 编译失败,maven : Invalid content was found starting with element 'db:generic-config' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30663427/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com