作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的 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/
我是一名优秀的程序员,十分优秀!