web-servlet.xml

<?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:context=”http://www.springframework.org/schema/context” xmlns:p=”http://www.springframework.org/schema/p” xmlns:util=”http://www.springframework.org/schema/util” xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd”> <context:component-scan base-package=”kr.or.ddit.shopplayer.web.controller”> <context:include-filter type=”annotation” expression=”org.springframework.stereotype.Controller”/> </context:component-scan> <!– // ====== 인터셉터 정의 ========== –> <!– <bean id=”loginCheck” class=”org.ddit.web.interceptor.LoginCheckInterceptor”/> –> <!– // ====== 핸들러 매핑 선언 ========== –> <bean id=”defaultHandler” class=”org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping” p:order=”2″ p:alwaysUseFullPath=”true” /> <bean id=”multipartResolver” class=”org.springframework.web.multipart.commons.CommonsMultipartResolver”/> <!– <bean id=”urlHandler” class=”org.ddit.web.handler.SimpleUrlAnnotationHandlerMapping” p:order=”1″ p:alwaysUseFullPath=”true”> <property name=”interceptors”> <list> <ref bean=”loginCheck”/> </list> </property> <property name=”urls”> <set> <value>/basket/*</value> <value>/order/*</value> </set> </property> </bean> –> <!– // ====== 뷰 리졸버 정의 ========== –> <!– <bean id=”viewResolver” class=”org.springframework.web.servlet.view.UrlBasedViewResolver” p:viewClass=”org.springframework.web.servlet.view.tiles2.TilesView” p:order=”1″ fxcm福汇 /> –> <!– <bean id=”viewResolver2″ class=”org.springframework.web.servlet.view.InternalResourceViewResolver” p:prefix=”/WEB-INF/res/” p:suffix=”.jsp” p:order=”2″ /> –> <!– <bean id=”jspViewResolver” class=”org.springframework.web.servlet.view.InternalResourceViewResolver” p:order=”2″ p:prefix=”/WEB-INF/res/” p:suffix=”.jsp” /> <bean id=”tilesViewResolver” class=”org.springframework.web.servlet.view.UrlBasedViewResolver”> <property name=”viewClass” value=”org.springframework.web.servlet.view.tiles2.TilesView”/> <property name=”order” value=”1″/> <property name=”viewNames” value=”.*”/> </bean> –> <!–…

SqlMapSpringConfig.xml

<?xml version=”1.0″ encoding=”UTF-8″ ?><!DOCTYPE sqlMapConfigPUBLIC “-//ibatis.apache.org//DTD SQL Map Config 2.0//EN”“http://ibatis.apache.org/dtd/sql-map-config-2.dtd”><sqlMapConfig> <settings cacheModelsEnabled=”true” lazyLoadingEnabled=”true” useStatementNamespaces=”true”/> <!– // 스프링 2.5.5 이상, 炒外汇入门 iBatis 2.3.2 이상일때 , 매핑로케이션 지원 // 버전이 안되면, 개별적으로 모두 등록하셔야 함 –> <sqlMap resource=”kr/or/ddit/shopplayer/ibatis/mapping/dummy.xml” /></sqlMapConfig>