<?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:util="http://www.springframework.org/schema/util"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd">
<!-- ================================================================= -->
<!-- Implements 된 Dao 등록한다 -->
<!-- import resurce="" -->
<!-- ................................................................. -->
<!-- -->
<!-- 업무 DataAccoussObject 설정을 추가한다. -->
<!-- -->
<!-- ================================================================= -->
<!-- import resource="spring-JDBC.xml"/-->
<!-- MusicFile -->
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<property name="maxUploadSize">
<value>10000000</value>
</property>
<property name="uploadTempDir" ref="uploadDirResource" />
</bean>
<bean id="uploadDirResource" class="org.springframework.core.io.FileSystemResource">
<constructor-arg>
<value>E:\Temp\fileupload\upload\</value>
</constructor-arg>
</bean>
<!-- ================================================================= -->
<!-- SAMPLE 1 URL Mapping Spring -->
<!-- -->
<!-- prop key 만 사용하여 Controller로 연결 -->
<!-- 장점 : -->
<!-- 단점 : -->
<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name ="mappings">
<props>
<prop key="/board.do">boardController</prop>
</props>
</property>
</bean>
<!-- =========== DEFINITIONS OF PROTECTED CONTROLLERS ============ -->
<!-- SAMPLE 2 URL Mapping Spring -->
<!-- Controller의 method로 URL을 mapping 한다. -->
<!-- 장점 : -->
<!-- 단점 : -->
<bean id="reportHandlerMapping"
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="urlMap">
<map>
<entry key="/rate/*.rate" value-ref="rateResultController" />
</map>
</property>
</bean>
<bean id="rateResultController"
class="com.hynix.smr.rate.controller.RateResultController "
parent="repositoryController">
<property name="methodNameResolver">
<bean class="org.springframework.web.servlet.mvc.multiaction.PropertiesMethodNameResolver">
<property name="mappings">
<props>
<prop key="/rate/rateList.rate">getRateMasterList</prop>
<prop key="/rate/rateModifyPage.rate">goCreateUpdateRateMasterPage</prop>
<prop key="/rate/rateDetail.rate">getRateMasterDetail</prop>
<prop key="/rate/rateDelete.rate">deleteRateMaster</prop>
<prop key="/rate/rateUpdate.rate">udpateRateMasterDetail</prop>
<prop key="/rate/rateCreate.rate">createRateMasterDetail</prop>
<prop key="/rate/goRateMasterRegist.rate">goRateMasterRegist</prop>
<prop key="/rate/goConditionSearch.rate">goConditionSearch</prop>
<prop key="/rate/rateResultCreate.rate">createRateResult</prop>
<prop key="/rate/rateResultSearch.rate">getRateResult</prop>
<prop key="/rate/rateYearInfo.rate">getYearInfo</prop>
<prop key="/rate/realOverAllDelete.rate">realOverAllDelete</prop> <!-- Ajax로 삭제 -->
</props>
</property>
</bean>
</property>
<property name="rateResultManager" ref="rateResultManager"/>
</bean>
<!-- ================================================================= -->
<!-- Business Controllers -->
<!-- ................................................................. -->
<!-- -->
<!-- 업무 Domain에 속하는 Controller Bean 설정을 추가한다. -->
<!-- -->
<!-- ================================================================= -->
<!-- TODO : Add Business Controller Configurations HERE -->
<bean id="boardController" class="com.board.controller.BoardController">
<property name="boardDao" ref="boardDao"></property>
<property name="realUploadPath">
<value>E:\Temp\fileupload\upload\</value>
</property>
<property name="sessionForm" value="true"/>
<property name="formView" value="boardList"/>
<property name="successView" value="redirect:/board.do"/>
</bean>
<!-- TODO : viewResolver -->
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass">
<value>org.springframework.web.servlet.view.JstlView</value>
</property>
<!--property name="prefix"><value>./jsp/</value></property-->
<property name="suffix"><value>.jsp</value></property>
</bean>
</beans>
'Spring' 카테고리의 다른 글
Mail - Spring JavaMailSender(2/2) - Mail sender Test (0) | 2010.09.14 |
---|---|
Junit Spring ApplicationContext (Applacation Bean Test, Spring Bean Call) (0) | 2010.09.08 |
SpringFramework *.property 사용방법 (0) | 2010.05.06 |
Spring + Tomcat + junit 테스트 _ 1 (3) | 2008.10.29 |
Sping freamwork _ v1 셋팅 (setting) Eclipes (0) | 2008.10.20 |