gpt4 book ai didi

element - cvc-complex-type.2.4.c : The matching wildcard is strict, 但找不到元素 'oxm:jaxb2-marshaller' 的声明

转载 作者:行者123 更新时间:2023-12-05 07:54:52 28 4
gpt4 key购买 nike

我的 config.xml 文件中有以下代码

 <beans:beans xmlns="http://www.springframework.org/schema"
xmlns:oxm="http://www.springframework.org/schema/oxm"
xsi:schemaLocation=
" http://www.springframework.org/schema/oxm http://www.springframework.org/schema/oxm/spring-oxm-3.1.xsd

<beans:oxm:jaxb2-marshaller id="SampleTestmapper"
contextPath="com.sample.base.Testing001"/>

上面的代码给我一个错误,说匹配的通配符是严格的,但是找不到元素 'oxm:jaxb2-marshaller' 的声明。

我已经声明了 oxm 的正确版本,即 3.1.xsd,符合我的 spring 版本。而且我在类路径中也有所需的 jar 文件。知道为什么我仍然收到错误吗?

注意:在我的 pom.xml 中,这是我添加依赖项的方式

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-oxm</artifactId>
</dependency>

最佳答案

<oxm:jaxb2-marshaller id="SampleTestmapper"
contextPath="com.sample.base.Testing001"/>

关于element - cvc-complex-type.2.4.c : The matching wildcard is strict, 但找不到元素 'oxm:jaxb2-marshaller' 的声明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30870051/

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