<beans xmlns:context="http://www.springframework.org/schema/context"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.springframework.org/schema/beans"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:cache="http://www.springframework.org/schema/cache"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd">
위와 같이 셋팅하는 경우가 많은데..
위의 xmlns에 정의한 name space는 반드시 아래 xsi:schemaLocation에 정의되어야 한다.
예를 들면 xmlns:util="http://www.springframework.org/schema/util" 를 추가하면
아래 schemaLocation 에도 http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd 해당 스키마 및 xsd를 추가해야 한다.
'개발관련 > JAVA' 카테고리의 다른 글
maven에서 repository에 settings.xml이 없을 때 (0) | 2016.06.01 |
---|---|
오류 발생 unsupported major.minor version 51.0 tomcat 6 또는 7 (0) | 2016.06.01 |
하나의 아파치 웹서버에 두개의 도메인 설정 (0) | 2016.05.02 |
Maven의 pom에 대한 dependency를 찾는 방법 (0) | 2016.01.06 |
아파치 웹서버 CPU 100% 사용될 때 경우 해결방안 (0) | 2015.12.18 |