gpt4 book ai didi

java - Spring mvc xml配置错误

转载 作者:行者123 更新时间:2023-12-01 12:38:56 24 4
gpt4 key购买 nike

我正在使用 spring 3.2 mvc 框架创建一个应用程序。我正在使用 Spring 工具套件 和 maven 。当我将 jar 3.1 更新到 3.2 时,我在servelet-context.xml 和 root-context.xml 中收到以下错误:-

cvc-elt.1: Cannot find the declaration of element 'beans:beans'.
cvc-elt.1: Cannot find the declaration of element 'beans'.

enter image description here

最佳答案

尝试将版本添加为架构位置的后缀:

.../schema/mvc/spring-mvc-3.2.xsd
.../schema/beans/spring-beans-3.2.xsd

关于java - Spring mvc xml配置错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25306508/

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