【springmvc配置xml文件时Errors报错解决】

新建一个web项目后,首先加入了jar包,然后在WEB-INF文件夹下新建一个web.xml文件,在网上可以找到完整配置;接着在src文件夹下建立自己的包,和springmvc.xml文件。这次问题主要是提示Description    Resource    Path    Location    Type
Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-4.3.xsd).  For more information, right click on the message in the Problems View and select "Show Details..."    springmvc.xml    /springmvc02/src    line 1    XML Problem
错误。如图:

Description	Resource	Path	Location	Type Attribute "xsi:schemaLocation" must be declared for element

然后将第7行http://www.springframework.org/schema/beans/spring-beans.xsd 的beans修改为beans-3.1.xsd。错误排除,结果如图:

Description	Resource	Path	Location	Type Attribute "xsi:schemaLocation" must be declared for element

相关文章:

  • 2021-10-28
  • 2022-01-22
  • 2021-09-21
  • 2022-12-23
  • 2021-12-16
  • 2021-10-10
  • 2022-12-23
  • 2022-01-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2021-03-31
  • 2021-08-02
  • 2021-04-16
  • 2022-12-23
相关资源
相似解决方案