<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd ">
<bean id="propertyConfigurer"
class="com.inborn.inshop.common.config.CustomizedPropertyConfigurer">
<property name="locations">
<list>
<value>classpath:db.properties</value>
<value>classpath:email.properties</value>
<value>classpath:aliyun.properties</value>
<value>classpath:param.properties</value>
<value>classpath:app.properties</value>
<value>classpath:base.properties</value>
<value>classpath:pay.properties</value>
<value>classpath:es.properties</value>
<value>classpath:sf.properties</value>
<value>classpath:commonParam.properties</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="true" />
</bean>
<!-- 数据源 -->
<import resource="classpath*:/spring/spring-config-datasource.xml" />
<!-- 邮件 -->
<import resource="classpath*:/spring/spring-email.xml" />

<!--&lt;!&ndash; 模板 &ndash;&gt;-->
<!--<import resource="classpath*:/spring/spring-freeMarker.xml" />-->
<!-- 事务 -->
<import resource="classpath*:/spring/spring-config-service.xml" />
<!-- 缓存 -->
<import resource="classpath*:/spring/spring-redis.xml" />

<import resource="classpath*:/spring/es_applicationContext.xml" />

<mvc:annotation-driven>
<mvc:message-converters>
<bean id="fastJsonHttpMessageConverter"
class="com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>application/json;charset=UTF-8</value>
</list>
</property>
</bean>
<bean id="stringHttpMessageConverter"
class="org.springframework.http.converter.StringHttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>text/html;charset=UTF-8</value>
</list>
</property>
</bean>
</mvc:message-converters>
</mvc:annotation-driven>

<bean id="userInterceptor" class="com.inborn.inshop.interceptor.UserInterceptor">
</bean>
<mvc:interceptors>
<ref bean="userInterceptor"/>
</mvc:interceptors>
<!-- 上传附件 -->
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<property name="defaultEncoding" value="utf-8" />
<!-- 上传最大限制 20M-->
<property name="maxUploadSize" value="20971520" />
<property name="maxInMemorySize" value="40960" />
<!-- resolveLazily属性启用是为了推迟文件解析,以便在UploadAction 中捕获文件大小异常-->
<property name="resolveLazily" value="true"/>
</bean>

<context:component-scan base-package="com.inborn.inshop" />

<!--<bean id="loadSystem" class="com.code.init.LoadSystem" init-method="init" /> -->
<!-- 异常处理类 -->
<bean class="com.inborn.inshop.handler.GlobalDefaultExceptionHandler"/>
</beans>

最新文章

  1. Xcode卡顿解决方案
  2. 实验12:Problem H: 整型数组运算符重载
  3. 聊聊Android5.0中的水波纹效果
  4. 基于webrtc的多人视频会话的demo运行程序
  5. AngularJs(三) deployd 服务的使用
  6. socket用法
  7. sql点滴38—SQL Server 2008和SQL Server 2008 R2导出数据的选项略有不同
  8. Android 关于在Activity中监听ListView
  9. RxSwift 对 MJRefresh 使用的封装
  10. include指令与include动作的区别(面试要考)
  11. Tiny4412模式跳转
  12. php发送邮箱重置密码链接,并在重置成功后使链接失效 (ThinkPHP5)
  13. 【Spring】文件上传
  14. 1.单件模式(Singleton Pattern)
  15. 简单使用metamascara
  16. 关于js语句的分号
  17. LeetCode429. N-ary Tree Level Order Traversal
  18. HDU 5572--An Easy Physics Problem(射线和圆的交点)
  19. Mac下使用brew搭建PHP7+nginx+mysql开发环境
  20. jdk是什么?jdk1.8安装配置方法

热门文章

  1. python: ImportError: cannot import name &#39;Style&#39; from &#39;openpyxl.styles&#39; 解决方法
  2. oracle表分区、表分析及oracle数据泵文件导入导出
  3. python 闭包和装饰器
  4. [转载]drop、truncate和delete的区别
  5. C#中对Web.Config、App.Config字符串加密与解密的方法
  6. QXDM操作应用
  7. SSMS登记密码清除
  8. hiho一下 第145周
  9. Oracle之用户和表空间
  10. JDK源码之ThreadLocal