Record
root-context.xml 본문
- Project를 처음 설정할 때의 root-context.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd">
<!-- Root Context: defines shared resources visible to all other web components -->
</beans>
root-context.xml은 mvc 설정과 관련된 여러 처리를 담당하는 설정 파일 (ex. DAO, VO, Service, ...) 이자 Bean(객체)들을 관리하는 문서이다.
필요할 때마다 주입해서 사용하기 위해 이곳에 Bean을 등록한다.
(Bean 태그를 사용해서 등록. id='bean의 이름' class='클래스의 위치')
다운받은 라이브러리들을 사용하는 곳이기도 하다.
'JAVA > Spring' 카테고리의 다른 글
Architecture of Spring MVC Model (0) | 2022.04.18 |
---|---|
HTTP 전송 정보 (0) | 2022.04.18 |
servlet-context.xml (0) | 2022.04.18 |
web.xml (0) | 2022.04.18 |
Comments