12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?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:p="http://www.springframework.org/schema/p"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:cache="http://www.springframework.org/schema/cache"
- xmlns:aop="http://www.springframework.org/schema/aop"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-3.0.xsd
- http://www.springframework.org/schema/aop
- http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
- http://www.springframework.org/schema/cache
- http://www.springframework.org/schema/cache/spring-cache-3.1.xsd
- http://www.springframework.org/schema/mvc
- http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
- <context:component-scan base-package="com.chinacreator"></context:component-scan>
- <mvc:annotation-driven />
- <mvc:default-servlet-handler />
- <aop:aspectj-autoproxy proxy-target-class="true" />
- <cache:annotation-driven cache-manager="cacheManager" />
- <bean id="cacheManagerFactory"
- class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"
- p:configLocation="classpath:ehcache.xml" p:shared="false" />
- <bean id="cacheManager" class="com.chinacreator.common.support.cache.EhCacheManager"
- p:cacheManager-ref="cacheManagerFactory" />
- <bean class="org.springframework.web.servlet.view.BeanNameViewResolver">
- <property name="order" value="1" />
- </bean>
- <bean name="json" class="org.springframework.web.servlet.view.json.JsonView">
- <property name="jsonWriter">
- <ref bean="jsonWriter" />
- </property>
- </bean>
- <!--
- <bean name="jedisCache" class="com.chinacreator.common.support.cache.JedisCache" init-method="initCache" />
- -->
- <bean name="jsonWriter"
- class="org.springframework.web.servlet.view.json.writer.sojo.SojoJsonStringWriter">
- <property name="convertAllMapValues">
- <value>true</value>
- </property>
- </bean>
- <bean class="com.chinacreator.common.support.web.handler.ExceptionResolver" />
- </beans>
|