AI...
2k
2021-04-09 14:43:20
0
148

servlet-context.xml 오류가 나는데 왜 이런가요?


인터넷 안되는 곳에선 아래 색상이 오류가 나네요...

몇 버전으로 맞쳐줘야 될까요?


spring4로 세팅중입니다.

https://www.springframework.org/schema/mvc/spring-mvc.xsd, -4.1.xsd??

https://www.springframework.org/schema/beans/spring-beans.xsd, -4.1.xsd??

https://www.springframework.org/schema/context/spring-context.xsd, -4.1.xsd??


<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:beans="http://www.springframework.org/schema/beans"
	xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/mvc https://www.springframework.org/schema/mvc/spring-mvc.xsd
		http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd">

	<!-- DispatcherServlet Context: defines this servlet's request-processing infrastructure -->
	
	<!-- Enables the Spring MVC @Controller programming model -->
	<annotation-driven />

	<!-- Handles HTTP GET requests for /resources/** by efficiently serving up static resources in the ${webappRoot}/resources directory -->
	<resources mapping="/resources/**" location="/resources/" />

	<!-- Resolves views selected for rendering by @Controllers to .jsp resources in the /WEB-INF/views directory -->
	<beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
		<beans:property name="prefix" value="/WEB-INF/views/" />
		<beans:property name="suffix" value=".jsp" />
	</beans:bean>
	
	<context:component-scan base-package="com.*" />
	
	
	
</beans:beans>


0
  • 답변 0

  • 로그인을 하시면 답변을 등록할 수 있습니다.