Java 在没有Maven的情况下设置Spring MVC应用程序时出错
我完全是Spring MVC的初学者,因此我遵循了本教程中的步骤,但在编辑Spring-web-config.xml文件后,我遇到了一个恼人的错误:Java 在没有Maven的情况下设置Spring MVC应用程序时出错,java,xml,spring-boot,spring-mvc,web-applications,Java,Xml,Spring Boot,Spring Mvc,Web Applications,我完全是Spring MVC的初学者,因此我遵循了本教程中的步骤,但在编辑Spring-web-config.xml文件后,我遇到了一个恼人的错误: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd ">
<context:component-scan
base-package="com.pgx.java.web" />
<bean
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass"
value="org.springframework.web.servlet.view.JstlView" />
<property name="prefix" value="/WEB-INF/view/jsp/" />
<property name="suffix" value=".jsp" />
</bean>
<mvc:resources mapping="/resources/**"
location="/resources/" />
<mvc:annotation-driven />
</beans>
我收到以下错误:
- 引用的文件包含错误()
- 引用的文件包含错误()