我的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-封送组’却找不到任何声明。
我已经声明了oxm的正确版本,它是3.1.xsd,符合我的spring版本。我还需要path.Any类中的jar文件,知道为什么我仍然会出错吗?
注意:在我的pom.xml中,我是如何添加依赖项的
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-oxm</artifactId>
</dependency>发布于 2022-05-27 14:55:22
<oxm:jaxb2-marshaller id="SampleTestmapper"
contextPath="com.sample.base.Testing001"/>https://stackoverflow.com/questions/30870051
复制相似问题