web.xml 정보보기
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <display-name>SPRINGTEST</display-name><!-- 애플리케이션의 이름을 정의 --> <description>SPRINGTEST Application</description><!-- 애플리케이션에 대한 설명 --> <welcome-file-list> <!-- 웹 애플리케이션이 사용자에게 처음 보여줄 페이지를 정의 --> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <context-param> <!-- Spring 프레임워크 구성 파일의 위치 --> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/spring/*-context.xml</param-value> </context-param> <filter> <!-- 문자 인코딩 방식 --> <filter-name>characterEncodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> </init-param> </filter> <filter-mapping> <filter-name>characterEncodingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <listener> <!-- 웹 애플리케이션의 생명 주기 이벤트를 처리 --> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <servlet> <!-- 서블릿 Controller: 사용자 정의 CommonActionCtrl 클래스를 사용하며, *.do URL 패턴에 매핑됩니다. --> <servlet-name>Controller</servlet-name> <servlet-class>com.finix.common.ctrl.CommonActionCtrl</servlet-class> <init-param> <param-name>actionConfig</param-name> <param-value>/WEB-INF/classes/resource/ActionConfig.properties</param-value> </init-param> <load-on-startup>0</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Controller</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <servlet> <!-- 서블릿 spring: Spring의 DispatcherServlet을 사용하여, *.action URL 패턴에 매핑됩니다. 이는 MVC 패턴을 지원하여, 모델과 뷰를 연결하는 중추적인 역할을 합니다. --> <servlet-name>spring</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/spring/finix-context.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>spring</servlet-name> <url-pattern>*.action</url-pattern> </servlet-mapping> <session-config><!-- 세션 유지 시간을 1시간 --> <session-timeout>60</session-timeout> </session-config> <listener> <listener-class> com.finix.common.ctrl.SessionListener </listener-class> </listener> <!-- 데이터베이스 연결을 위한 두 가지 리소스 참조가 설정 --> <resource-ref> <description>Connection</description> <res-ref-name>jdbc/FiniX</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> <resource-ref> <description>Connection</description> <res-ref-name>jdbc/WWW_WORLD</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> </web-app> |