tool.xml 1.18 KB
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns="http://www.springframework.org/schema/beans"
       xmlns:c="http://www.springframework.org/schema/c"
       xmlns:p="http://www.springframework.org/schema/p"
       xsi:schemaLocation="
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
    <!-- 上传文件拦截,设置最大上传文件大小   10M=10*1024*1024(B)=10485760 bytes -->
    <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
        <property name="maxUploadSize" value="10485760" />
    </bean>

    <bean class="org.springframework.mail.javamail.JavaMailSenderImpl"
          p:host="smtp.mxhichina.com" p:username="system@canrd.com‍" p:password="Kelude2015" p:defaultEncoding="UTF-8" />

    <bean class="org.springframework.ui.velocity.VelocityEngineFactoryBean">
        <property name="resourceLoaderPath" value="classpath:velocity/" />
        <property name="velocityProperties"><value>
            input.encoding = UTF-8
            output.encoding = UTF-8
        </value></property>
    </bean>
</beans>