프레임워크/스프링25 [Spring] Spring MVC - 세팅 파일 예시 및 설명 스프링 세팅 파일에는 대표적으로 3개의 xml파일이 있다. 1. web.xml (세팅 파일 지정 및 기초 설정) 2. servlet-context.xml (서블릿 - 화면 이동에 관한 세팅) 3. root-context.xml(DB 정보 세팅) web.xml만 이름이 같고 나머지는 이름이 다를수도 있다. 1.web.xml 코드 contextConfigLocation /WEB-INF/spring/root-context.xml org.springframework.web.context.ContextLoaderListener appServlet org.springframework.web.servlet.DispatcherServlet contextConfigLocation /WEB-INF/spring/appSer.. 2022. 9. 25. 이전 1 ··· 4 5 6 7 다음