관리 메뉴

거니의 velog

(2) 프로젝트 구조 및 설정 2 본문

대덕인재개발원/대덕인재개발원_최종 포트폴리오

(2) 프로젝트 구조 및 설정 2

Unlimited00 2024. 2. 15. 11:16

2. 설정 파일 살펴보기

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>kr.or</groupId>
	<artifactId>ddit</artifactId>
	<name>YogiProject</name>
	<packaging>war</packaging>
	<version>1.0.0-BUILD-SNAPSHOT</version>
	<properties>
		<java-version>1.8</java-version>
		<org.springframework-version>5.3.25</org.springframework-version>
		<org.aspectj-version>1.6.10</org.aspectj-version>
		<org.slf4j-version>1.6.6</org.slf4j-version>
	</properties>
	<repositories>
  		<repository>
    		<id>jitpack.io</id>
    		<url>https://jitpack.io</url>
  		</repository>
	</repositories>
	<dependencies>
		<!-- Spring -->
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-context</artifactId>
			<version>${org.springframework-version}</version>
			<exclusions>
				<!-- Exclude Commons Logging in favor of SLF4j -->
				<exclusion>
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				 </exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-webmvc</artifactId>
			<version>${org.springframework-version}</version>
		</dependency>
				
		<!-- AspectJ -->
		<dependency>
			<groupId>org.aspectj</groupId>
			<artifactId>aspectjrt</artifactId>
			<version>${org.aspectj-version}</version>
		</dependency>	
		
		<!-- Logging -->
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<version>${org.slf4j-version}</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>jcl-over-slf4j</artifactId>
			<version>${org.slf4j-version}</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
			<version>${org.slf4j-version}</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.15</version>
			<exclusions>
				<exclusion>
					<groupId>javax.mail</groupId>
					<artifactId>mail</artifactId>
				</exclusion>
				<exclusion>
					<groupId>javax.jms</groupId>
					<artifactId>jms</artifactId>
				</exclusion>
				<exclusion>
					<groupId>com.sun.jdmk</groupId>
					<artifactId>jmxtools</artifactId>
				</exclusion>
				<exclusion>
					<groupId>com.sun.jmx</groupId>
					<artifactId>jmxri</artifactId>
				</exclusion>
			</exclusions>
			<scope>runtime</scope>
		</dependency>

		<!-- @Inject -->
		<dependency>
			<groupId>javax.inject</groupId>
			<artifactId>javax.inject</artifactId>
			<version>1</version>
		</dependency>
				
		<!-- Servlet -->
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>javax.servlet-api</artifactId>
			<version>3.1.0</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>javax.servlet.jsp</groupId>
			<artifactId>jsp-api</artifactId>
			<version>2.1</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>jstl</artifactId>
			<version>1.2</version>
		</dependency>
		
		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</artifactId>
			<version>1.18.22</version>
		</dependency>
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-databind</artifactId>
			<version>2.9.5</version>
		</dependency>
		<dependency>
			<groupId>commons-fileupload</groupId>
			<artifactId>commons-fileupload</artifactId>
			<version>1.3.2</version>
		</dependency>
		<dependency>
			<groupId>commons-io</groupId>
			<artifactId>commons-io</artifactId>
			<version>2.6</version>
		</dependency>
		
		<!-- Database 라이브러리 등록 시작 -->
		<!-- XML로 쿼리를 작성하게 해주는 라이브러리 -->
		<dependency>
			<groupId>org.mybatis</groupId>
			<artifactId>mybatis</artifactId>
			<version>3.5.10</version>
		</dependency>
		
		<!-- 스프링과 mybatis를 연동하게 해주는 라이브러리 -->
		<dependency>
			<groupId>org.mybatis</groupId>
			<artifactId>mybatis-spring</artifactId>
			<version>2.0.4</version>
		</dependency>
		
		<!-- 스프링에서 JDBC (Java Database Connectivity) -->
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-jdbc</artifactId>
			<version>${org.springframework-version}</version>
		</dependency>
		
		<!-- 
			dbcp 설정
			database connection pool => 커넥션 객체를 미리 만들어놓고 쓰고/반납, 최근에는 hikaricp를 사용하는 경우도 있음 
		-->
		<dependency>
			<groupId>org.apache.commons</groupId>
			<artifactId>commons-dbcp2</artifactId>
			<version>2.7.0</version>
		</dependency>
		
		<!-- 로깅을 위한 라이브러리, 쿼리를 console이나 파일 로그로 볼 수 있음 -->
		<dependency>
			<groupId>org.bgee.log4jdbc-log4j2</groupId>
			<artifactId>log4jdbc-log4j2-jdbc4</artifactId>
			<version>1.16</version>
		</dependency>
		
		<!-- oracle java database connectivity 드라이버 -->
		<dependency>
			<groupId>com.oracle.database.jdbc</groupId>
			<artifactId>ojdbc8</artifactId>
			<version>21.1.0.0</version>
		</dependency>
		<!-- Database 라이브러리 등록 끝 -->
		
		<!-- Tiles 의존 관계 등록 시작 -->
		<dependency>
			<groupId>org.apache.tiles</groupId>
			<artifactId>tiles-core</artifactId>
			<version>3.0.8</version>
		</dependency>
		<dependency>
			<groupId>org.apache.tiles</groupId>
			<artifactId>tiles-extras</artifactId>
			<version>3.0.8</version>
		</dependency>
		<dependency>
			<groupId>org.apache.tiles</groupId>
			<artifactId>tiles-servlet</artifactId>
			<version>3.0.8</version>
		</dependency>
		<dependency>
			<groupId>org.apache.tiles</groupId>
			<artifactId>tiles-jsp</artifactId>
			<version>3.0.8</version>
		</dependency>
		<!-- Tiles 의존 관계 등록 끝 -->
		
		<dependency>
			<groupId>org.apache.commons</groupId>
			<artifactId>commons-lang3</artifactId>
			<version>3.6</version>
		</dependency>
		
		<!-- 이미지 변환을 처리하기 위한 의존 라이브러리 -->
		<dependency>
			<groupId>org.imgscalr</groupId>
			<artifactId>imgscalr-lib</artifactId>
			<version>4.2</version>
		</dependency>
	
		<dependency>
			<groupId>com.google.code.gson</groupId>
			<artifactId>gson</artifactId>
			<version>2.8.2</version>
		</dependency>
		
		<!-- json-simple  -->
		<dependency>
		    <groupId>com.googlecode.json-simple</groupId>
		    <artifactId>json-simple</artifactId>
		    <version>1.1</version>
		</dependency>

		<!-- translate(구글번역기) -->
		<dependency>
		    <groupId>com.google.cloud</groupId>
		    <artifactId>google-cloud-translate</artifactId>
		    <version>1.94.5</version>
		</dependency>	

		<dependency>
		    <groupId>com.google.guava</groupId>
		    <artifactId>guava</artifactId>
		    <version>30.1-jre</version>
		</dependency>

		<!-- Web Socket -->
		<dependency> 
		    <groupId>org.springframework</groupId> 
		    <artifactId>spring-websocket</artifactId> 
		    <version>${org.springframework-version}</version> 
		</dependency>
		<dependency> 
		    <groupId>javax.websocket</groupId> 
		    <artifactId>javax.websocket-api</artifactId> 
		    <version>1.1</version> 
		</dependency>

		<!-- iamport -->
	   	<dependency>
		  <groupId>com.github.iamport</groupId>
		  <artifactId>iamport-rest-client-java</artifactId>
		  <version>0.2.14</version>
		</dependency>

		<!-- 엑셀 업로드/다운로드 poi API -->
		<dependency>
			<groupId>org.apache.poi</groupId>
			<artifactId>poi</artifactId>
			<version>3.13</version>
		</dependency>
		<dependency>
			<groupId>org.apache.poi</groupId>
			<artifactId>poi-ooxml</artifactId>
			<version>3.13</version>
		</dependency>
		<dependency> 
			<groupId>org.apache.poi</groupId> 
			<artifactId>poi-ooxml-schemas</artifactId> 
			<version>3.13</version> 
		</dependency> 
		<dependency> 
			<groupId>org.apache.poi</groupId> 
			<artifactId>poi-contrib</artifactId> 
			<version>3.7-beta3</version> 
		</dependency>
		
		
		

		<dependency> 
			<groupId>commons-beanutils</groupId> 
			<artifactId>commons-beanutils</artifactId> 
			<version>1.9.2</version> 
		</dependency>

		<dependency> 
			<groupId>commons-digester</groupId> 
			<artifactId>commons-digester</artifactId> 
			<version>2.0</version> 
		</dependency>
		
		<dependency> 
			<groupId>org.apache.commons</groupId> 
			<artifactId>commons-jexl</artifactId> 
			<version>2.1.1</version> 
		</dependency>

		<dependency>
        	<groupId>net.sf.jxls</groupId>
        	<artifactId>jxls-core</artifactId>
        	<version>1.0.5</version>
    	</dependency>

		<!-- Test -->
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.7</version>
			<scope>test</scope>
		</dependency>        
	</dependencies>
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-eclipse-plugin</artifactId>
                <version>2.9</version>
                <configuration>
                    <additionalProjectnatures>
                        <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
                    </additionalProjectnatures>
                    <additionalBuildcommands>
                        <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
                    </additionalBuildcommands>
                    <downloadSources>true</downloadSources>
                    <downloadJavadocs>true</downloadJavadocs>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.5.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <compilerArgument>-Xlint:all</compilerArgument>
                    <showWarnings>true</showWarnings>
                    <showDeprecation>true</showDeprecation>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.2.1</version>
                <configuration>
                    <mainClass>org.test.int1.Main</mainClass>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.1" xmlns="http://java.sun.com/xml/ns/javaee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee https://java.sun.com/xml/ns/javaee/web-app_3_1.xsd">

	<!-- The definition of the Root Spring Container shared by all Servlets and Filters -->
	<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>/WEB-INF/spring/root-context.xml</param-value>
	</context-param>
	
	<!-- Creates the Spring Container shared by all Servlets and Filters -->
	<listener>
		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
	</listener>

	<!-- Processes application requests -->
	<servlet>
		<servlet-name>appServlet</servlet-name>
		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
		<init-param>
			<param-name>contextConfigLocation</param-name>
			<param-value>/WEB-INF/spring/appServlet/servlet-context.xml</param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
		
		<!-- 404에러처리를 위해서 404에러떄는 예외오류를 발생시켜준다. -->
		<init-param>
			<param-name>throwExceptionIfNoHandlerFound</param-name>
			<param-value>true</param-value>
		</init-param>
		
		<async-supported>true</async-supported>
				
	</servlet>
		
	<servlet-mapping>
		<servlet-name>appServlet</servlet-name>
		<url-pattern>/</url-pattern>
	</servlet-mapping>
	
	<!--  
		브라우저에서 보내는 요청(request)과 응답(response)을 모두 UTF-8로 고정하기 위해 인코딩 필터를 설정한다.
	-->
	<filter>
		<filter-name>encordingFilter</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>
		<init-param>
			<param-name>forceEncoding</param-name>
			<param-value>true</param-value>
		</init-param>
	</filter>
	<filter-mapping>
		<filter-name>encordingFilter</filter-name>
		<url-pattern>/*</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>/*</url-pattern>
	</filter-mapping>

	<error-page>
		<error-code>403</error-code>
		<location>/error/error?code=403</location>
	</error-page>

</web-app>

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

	<!-- Appenders -->
	<appender name="console" class="org.apache.log4j.ConsoleAppender">
		<param name="Target" value="System.out" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%-5p: %c - %m%n" />
		</layout>
	</appender>
	
	<!-- Application Loggers -->
	<logger name="kr.or.ddit">
		<level value="debug" />
	</logger>
	
	<!-- 3rdparty Loggers -->
	<logger name="org.springframework.core">
		<level value="info" />
	</logger>
	
	<logger name="org.springframework.beans">
		<level value="info" />
	</logger>
	
	<logger name="org.springframework.context">
		<level value="info" />
	</logger>

	<logger name="org.springframework.web">
		<level value="info" />
	</logger>

	<!-- Root Logger -->
	<root>
		<priority value="debug" />
		<appender-ref ref="console" />
	</root>
	
</log4j:configuration>

<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:beans="http://www.springframework.org/schema/beans"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:websocket="http://www.springframework.org/schema/websocket"
	xsi:schemaLocation="http://www.springframework.org/schema/websocket http://www.springframework.org/schema/websocket/spring-websocket-4.3.xsd
		http://www.springframework.org/schema/mvc https://www.springframework.org/schema/mvc/spring-mvc.xsd
		http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd">

	<!-- DispatcherServlet Context: defines this servlet's request-processing infrastructure -->
	
	<!-- Enables the Spring MVC @Controller programming model -->
	<annotation-driven />

	<!-- Handles HTTP GET requests for /resources/** by efficiently serving up static resources in the ${webappRoot}/resources directory -->
	<resources mapping="/resources/**" location="/resources/" />

	<!-- Resolves views selected for rendering by @Controllers to .jsp resources in the /WEB-INF/views directory -->
	<beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
		<beans:property name="prefix" value="/WEB-INF/views/" />
		<beans:property name="suffix" value=".jsp" />
		<beans:property name="order" value="2"/>
	</beans:bean>
	
	<beans:bean id="tilesViewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
		<beans:property name="viewClass" value="org.springframework.web.servlet.view.tiles3.TilesView"/>
		<beans:property name="order" value="1"/>
	</beans:bean>
	
	<beans:bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles3.TilesConfigurer">
		<beans:property name="definitions">
			<beans:list>
				<beans:value>/WEB-INF/spring/tiles-config.xml</beans:value>
			</beans:list>
		</beans:property>
	</beans:bean>
	
	<!-- <beans:bean id="accessDenielInterceptor" class="kr.or.ddit.utils.AccessDenielInterceptor" />
	<interceptors>
		<interceptor>
			<mapping path="/**" />
			
			<exclude-mapping path="/resources/**"/>
			
			<exclude-mapping path="/"/>
			<exclude-mapping path="/index.do"/>
			<exclude-mapping path="/index/**"/>
			<exclude-mapping path="/personalInfo.do"/>
			<exclude-mapping path="/imageInfo.do"/>
			<exclude-mapping path="/imageUpload.do"/>
			
			<exclude-mapping path="/locations/**"/>
			
			<exclude-mapping path="/login/**"/>
			
			<exclude-mapping path="/mypage/**"/>
			
			<exclude-mapping path="/myplan/info.do"/>
			<exclude-mapping path="/myplan/planMain.do"/>
			<exclude-mapping path="/myplan/**"/>
			
			<exclude-mapping path="/notice/list.do"/>
			<exclude-mapping path="/notice/user/**"/>
			<exclude-mapping path="/notice/admin/**"/>
			
			<exclude-mapping path="/qna/list.do"/>
			<exclude-mapping path="/review/list.do"/>
			
			<beans:ref bean="accessDenielInterceptor" />
		</interceptor>
	</interceptors> -->
	
	<context:component-scan base-package="kr.or.ddit" />
	
	
	<!-- 채팅 관련 핸들러 등록 -->
	<beans:bean id="chatHandler" class="kr.or.ddit.utils.websocket.ChatHandler" />
	
	<beans:bean id="loginDetectHandler" class="kr.or.ddit.utils.websocket.LoginDetectHandler" />
	
	<beans:bean id="chatInOutHandler" class="kr.or.ddit.utils.websocket.ChatInOutHandler" />
	
	<beans:bean id="realTimeAlertHandler" class="kr.or.ddit.utils.websocket.RealTimeAlertHandler" />
	
	<beans:bean id="realTimeAlertHandlerChansVer" class="kr.or.ddit.utils.websocket.RealTimeAlertHandlerChansVer" />
	
	<!-- <websocket:handlers allowed-origins="*"> -->
	<websocket:handlers>
		<websocket:mapping handler="chatHandler" path="/chat" />
		<websocket:handshake-interceptors>
			<beans:bean class="org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor" />
		</websocket:handshake-interceptors>
		<websocket:sockjs />
	</websocket:handlers>
	
	<websocket:handlers>
		<websocket:mapping handler="loginDetectHandler" path="/logindetect" />
		<websocket:handshake-interceptors>
			<beans:bean class="org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor" />
		</websocket:handshake-interceptors>
		<websocket:sockjs />
	</websocket:handlers>
	
	<websocket:handlers>
		<websocket:mapping handler="chatInOutHandler" path="/chatinoutdetect" />
		<websocket:handshake-interceptors>
			<beans:bean class="org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor" />
		</websocket:handshake-interceptors>
		<websocket:sockjs />
	</websocket:handlers>
	
	<websocket:handlers>
		<websocket:mapping handler="realTimeAlertHandler" path="/alert" />
		<websocket:handshake-interceptors>
			<beans:bean class="org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor" />
		</websocket:handshake-interceptors>
		<websocket:sockjs />
	</websocket:handlers>
	
	<websocket:handlers>
		<websocket:mapping handler="realTimeAlertHandlerChansVer" path="/alertForChan" />
		<websocket:handshake-interceptors>
			<beans:bean class="org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor" />
		</websocket:handshake-interceptors>
		<websocket:sockjs />
	</websocket:handlers>
	
	
</beans:beans>

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:tx="http://www.springframework.org/schema/tx"
	xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.3.xsd">
	
	<!-- Root Context: defines shared resources visible to all other web components -->
	<bean id="dataSource" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
	 	<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
	 	<property name="url" value="jdbc:oracle:thin:@112.220.114.130:1521:xe"/>
	 	<property name="username" value="team4_202307F"/>
	 	<property name="password" value="java"/>
	 </bean>	
	 <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
	 	<property name="dataSource" ref="dataSource"/>
	 	<property name="mapperLocations" value="classpath:/sqlmap/**/*_SQL.xml"/>
	 	<property name="configLocation" value="/WEB-INF/mybatisAlias/mybatisAlias.xml"/>
	 </bean>
	 <bean id="sqlSessionTemplate" class="org.mybatis.spring.SqlSessionTemplate">
	 	<constructor-arg name="sqlSessionFactory" index="0" ref="sqlSessionFactory"/>
	 </bean>
	 <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
	 	<property name="basePackage" value="kr.or.ddit.mapper"/> 
	 </bean>
	 <bean id="MultipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
	 	<property name="maxUploadSize" value="524288000"/>
	 	<property name="maxInMemorySize" value="524288000"/>
	 	<property name="defaultEncoding" value="UTF-8"/>
	 </bean>
	 <bean id="uploadPath" class="java.lang.String">
	 	<constructor-arg value="D:\A_TeachingMaterial\09_FinalPoject\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\YogiProject\resources\commonimg"/>
	 </bean>
	 <!-- 트랜잭션 관리자의 빈을 정의 -->
	 <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
		<property name="dataSource" ref="dataSource" />
	 </bean>
	
	 <!-- 어노테이션 기반의 트랜잭션 제어를 활성화 -->
	 <tx:annotation-driven />
		
</beans>

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 3.0//EN" "http://tiles.apache.org/dtds/tiles-config_3_0.dtd">
<tiles-definitions>

	<definition name="mainTemplate" template="/WEB-INF/views/layout/member/mainTemplate.jsp">
		<put-attribute name="header" value="/WEB-INF/views/layout/member/header.jsp"/>
		<put-attribute name="footer" value="/WEB-INF/views/layout/member/footer.jsp"/>
		<put-attribute name="settings" value="/WEB-INF/views/layout/member/settings.jsp"/>
		<put-attribute name="headerSettings" value="/WEB-INF/views/layout/member/headerSettings.jsp"/>
	</definition>

	<definition name="user/*" extends="mainTemplate">
		<put-attribute name="userMainContainer" value="/WEB-INF/views/member/{1}.jsp"/>
	</definition>
	
	<definition name="boardTemplate" template="/WEB-INF/views/layout/member/boardTemplate.jsp">
		<put-attribute name="header" value="/WEB-INF/views/layout/member/header.jsp"/>
		<put-attribute name="footer" value="/WEB-INF/views/layout/member/footer.jsp"/>
		<put-attribute name="settings" value="/WEB-INF/views/layout/member/settings.jsp"/>
		<put-attribute name="headerSettings" value="/WEB-INF/views/layout/member/headerSettings.jsp"/>
	</definition>

	<definition name="board/*" extends="boardTemplate">
		<put-attribute name="userBoardContainer" value="/WEB-INF/views/member/board/{1}.jsp"/>
	</definition>
	
	<definition name="reserveTemplate" template="/WEB-INF/views/layout/member/reserveTemplate.jsp">
		<put-attribute name="header" value="/WEB-INF/views/layout/member/header.jsp"/>
		<put-attribute name="footer" value="/WEB-INF/views/layout/member/footer.jsp"/>
		<put-attribute name="settings" value="/WEB-INF/views/layout/member/settings.jsp"/>
		<put-attribute name="headerSettings" value="/WEB-INF/views/layout/member/headerSettings.jsp"/>
	</definition>

	<definition name="reserve/air/*" extends="reserveTemplate">
		<put-attribute name="userReserveContainer" value="/WEB-INF/views/member/reserve/air/{1}.jsp"/>
	</definition>
	
	<definition name="reserve/stay/*" extends="reserveTemplate">
		<put-attribute name="userReserveContainer" value="/WEB-INF/views/member/reserve/stay/{1}.jsp"/>
	</definition>
	
	<definition name="partnerTemplate" template="/WEB-INF/views/layout/member/partnerTemplate.jsp">
		<put-attribute name="header" value="/WEB-INF/views/layout/member/header.jsp"/>
		<put-attribute name="footer" value="/WEB-INF/views/layout/member/footer.jsp"/>
		<put-attribute name="settings" value="/WEB-INF/views/layout/member/settings.jsp"/>
		<put-attribute name="headerSettings" value="/WEB-INF/views/layout/member/headerSettings.jsp"/>
	</definition>

	<definition name="partner/*" extends="partnerTemplate">
		<put-attribute name="userPartnerContainer" value="/WEB-INF/views/member/partner/{1}.jsp"/>
	</definition>
	
	<definition name="myPlanTemplate" template="/WEB-INF/views/layout/member/myPlanTemplate.jsp">
		<put-attribute name="header" value="/WEB-INF/views/layout/member/header.jsp"/>
		<put-attribute name="footer" value="/WEB-INF/views/layout/member/footer.jsp"/>
		<put-attribute name="settings" value="/WEB-INF/views/layout/member/settings.jsp"/>
		<put-attribute name="headerSettings" value="/WEB-INF/views/layout/member/headerSettings.jsp"/>
	</definition>

	<definition name="myplan/*" extends="myPlanTemplate">
		<put-attribute name="userMyPlanContainer" value="/WEB-INF/views/member/myplan/{1}.jsp"/>
	</definition>
	
	<definition name="myPageTemplate" template="/WEB-INF/views/layout/member/myPageTemplate.jsp">
		<put-attribute name="header" value="/WEB-INF/views/layout/member/header.jsp"/>
		<put-attribute name="footer" value="/WEB-INF/views/layout/member/footer.jsp"/>
		<put-attribute name="settings" value="/WEB-INF/views/layout/member/settings.jsp"/>
		<put-attribute name="headerSettings" value="/WEB-INF/views/layout/member/headerSettings.jsp"/>
	</definition>

	<definition name="mypage/*" extends="myPageTemplate">
		<put-attribute name="myPageContainer" value="/WEB-INF/views/member/mypage/{1}.jsp"/>
	</definition>

</tiles-definitions>