geoinfo_eGov_work/src/main/webapp/WEB-INF/web.xml

187 lines
5.2 KiB
XML

<?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"
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>geoinfo</display-name>
<filter>
<filter-name>encodingFilter</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>encodingFilter</filter-name>
<url-pattern>*.do</url-pattern>
<url-pattern>*.json</url-pattern>
</filter-mapping>
<!-- 멀티파트필터 적용 -->
<filter>
<filter-name>multipartFilter</filter-name>
<filter-class>org.springframework.web.multipart.support.MultipartFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>multipartFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<!-- 멀티파트필터 적용 -->
<!-- XSS스크립트 방지 -->
<!-- <filter>
<filter-name>HTMLTagFilter</filter-name>
<filter-class>egovframework.com.cmm.filter.HTMLTagFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>HTMLTagFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping> -->
<!-- 공통 xml 파일 읽기 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:egovframework/spring/context-*.xml</param-value>
</context-param>
<!-- 공통 xml 파일 읽기 -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- DispatcherServlet 설정 -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/config/springmvc/*.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.doo</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.json</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>ImageServlet</servlet-name>
<servlet-class>net.sf.jasperreports.j2ee.servlets.ImageServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ImageServlet</servlet-name>
<url-pattern>/image</url-pattern>
</servlet-mapping>
<!-- http 와 https 세션 공유? -->
<!-- <filter> -->
<!-- <filter-name>httpsSessionFilter</filter-name> -->
<!-- <filter-class>farmland.common.filter.HttpsSessionFilter</filter-class> -->
<!-- </filter> -->
<!-- <filter-mapping> -->
<!-- <filter-name>httpsSessionFilter</filter-name> -->
<!-- <url-pattern>*.do</url-pattern> -->
<!-- </filter-mapping> -->
<!-- http 와 https 세션 공유? -->
<!-- <servlet> <servlet-name>UploadServlet</servlet-name> <servlet-class>ex.UploadServlet</servlet-class>
<multipart-config> <location>C:\\uploadTemp</location> <file-size-threshold>1024</file-size-threshold>
</multipart-config> </servlet> <servlet-mapping> <servlet-name>UploadServlet</servlet-name>
<url-pattern>/upload</url-pattern> </servlet-mapping> -->
<!-- DispatcherServlet 설정 -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
<session-config>
<session-timeout>-1</session-timeout>
</session-config>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/isError.jsp</location>
</error-page>
<error-page>
<error-code>400</error-code>
<location>/isError.jsp</location>
</error-page>
<error-page>
<error-code>401</error-code>
<location>/isError.jsp</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/isError.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/404.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/500.jsp</location>
</error-page>
<error-page>
<error-code>501</error-code>
<location>/isError.jsp</location>
</error-page>
<error-page>
<error-code>502</error-code>
<location>/isError.jsp</location>
</error-page>
<error-page>
<error-code>401</error-code>
<location>/isError.jsp</location>
</error-page>
<error-page>
<error-code>400</error-code>
<location>/isError.jsp</location>
</error-page>
<security-constraint>
<display-name>Forbidden</display-name>
<web-resource-collection>
<web-resource-name>Protected Context</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>OPTIONS</http-method>
<http-method>PUT</http-method>
<http-method>DELETE</http-method>
<http-method>TRACE</http-method>
<http-method>COPY</http-method>
<http-method>PATCH</http-method>
<http-method>CONNECT</http-method>
</web-resource-collection>
<auth-constraint>
<role-name></role-name>
</auth-constraint>
</security-constraint>
</web-app>