| 1 | --anyframe |
---|
| 2 | --core-servlet.xml |
---|
| 3 | {{{ |
---|
| 4 | |
---|
| 5 | <?xml version="1.0" encoding="UTF-8"?> |
---|
| 6 | <beans xmlns="http://www.springframework.org/schema/beans" |
---|
| 7 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" |
---|
| 8 | xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:anyframe="http://www.anyframejava.org/schema/mvc" |
---|
| 9 | xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd |
---|
| 10 | http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd |
---|
| 11 | http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd |
---|
| 12 | http://www.anyframejava.org/schema/mvc http://www.anyframejava.org/schema/mvc/anyframe-spring-mvc-4.5.xsd"> |
---|
| 13 | |
---|
| 14 | <anyframe:annotation-driven synchronizeOnSession="true" /> |
---|
| 15 | |
---|
| 16 | <context:component-scan base-package="com.everland" |
---|
| 17 | use-default-filters="false"> |
---|
| 18 | <context:include-filter type="annotation" |
---|
| 19 | expression="org.springframework.stereotype.Controller" /> |
---|
| 20 | </context:component-scan> |
---|
| 21 | |
---|
| 22 | <bean |
---|
| 23 | class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping"> |
---|
| 24 | </bean> |
---|
| 25 | |
---|
| 26 | <bean id="exceptionResolver" |
---|
| 27 | class="com.everland.common.MovieFinderExceptionResolver"> |
---|
| 28 | <property name="defaultErrorView" value="forward:/sample/common/error.jsp" /> |
---|
| 29 | </bean> |
---|
| 30 | |
---|
| 31 | <bean id="jstlViewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver"> |
---|
| 32 | <property name="viewClass" value="org.springframework.web.servlet.view.JstlView" /> |
---|
| 33 | <property name="prefix" value="/WEB-INF/jsp/"/> |
---|
| 34 | <property name="suffix" value=".jsp"/> |
---|
| 35 | </bean> |
---|
| 36 | |
---|
| 37 | <bean id="localeResolver" |
---|
| 38 | class="org.springframework.web.servlet.i18n.SessionLocaleResolver"> |
---|
| 39 | <property name="defaultLocale" value="en_US" /> |
---|
| 40 | </bean> |
---|
| 41 | |
---|
| 42 | </beans> |
---|
| 43 | }}} |