WEB
-
web.xml 에 선언된 context-param, init-param 테스트Spring 2021. 6. 30. 00:41
실제작성일 2018년 12월 13일 web.xml metawerx 사이트 를 참고 했습니다. context-param 태그는 전체 context/web application 에 parameter를 제공합니다. 실제 테스트를 해봤습니다. web.xml 코드 contextConfigLocation classpath:spring/application-config.xml spring Controller 에서 테스트 해봤습니다. @RequestMapping("/test") public String test(HttpServletRequest request) { String initParameter = request.getServletContext().getInitParameter("contextConfigLocat..