egov-com-servlet.xml


<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping" p:order="3">

<property name="mappings">

<props>

<prop key="/sub/sub01/page*.do">sub01ViewController</prop>

</props>

</property>

</bean>


<bean class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter" />

<bean id="sub01ViewController" class="org.springframework.web.servlet.mvc.UrlFilenameViewController" p:prefix="/sub/sub01/" p:suffix="" />


-----------------------------------------------------------------------------------------------------------------------------------------------

key : 호출할 mapping URL

<prop></prop>사이에 viewController Id를 적어준다.


bean

id : prop에 선언한 viewController Id

p:prefix : 컨텐츠 경로




'etc.' 카테고리의 다른 글

[eclipse] 이클립스 블럭 주석 설정/해제 단축키  (0) 2016.09.28
[Toad] 주석 단축키  (0) 2016.09.27
[eclipse] out of memory 날 때 조치방법  (0) 2016.09.01

+ Recent posts