Package com.poscoict.glueframework.web.control.spring
package com.poscoict.glueframework.web.control.spring
web controller package for Spring Web MVC framework. Glue Web Controller.
Spring Web MVC Framework을 위한 Wrapper Class인 GlueSimpleController
와
그 기능 확장을 위한 Class인 GlueAbstractController
을 제공한다.
1. web.xml<servlet> <servlet-name>dispatcher</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/dispatcher-servlet.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>dispatcher</servlet-name> <url-pattern>*.mvc</url-pattern> </servlet-mapping>
2. dispatcher-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" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd"> <bean id="simpleUrlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> <property name="mappings"> <value> /*.mvc=controller </value> </property> </bean> <bean name="controller" class="com.poscoict.glueframework.web.control.spring.GlueSimpleController" /> <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="prefix" value="/springmvc/" /> <property name="suffix" value=".jsp" /> </bean>
3. url & parameter http://{ip}:{port}/{context}/sample.mvc
- Since:
- 2013. 5. 10.
- Version:
- 1.0.0
- Author:
- 허 두녕
-
ClassesClassDescriptionSpring MVC 의 Controller.Json Controller for SpringMVC.Simple Controller for SpringMVC.이 Controller는 XML 설정을 통한 View를 컨트롤하는 Controller이다.