Advertisement
Guest User

/WEB-INF/dispatcher-servlet.xml

a guest
Jul 24th, 2015
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.66 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:task="http://www.springframework.org/schema/task" 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-2.5.xsd  http://www.springframework.org/schema/context  http://www.springframework.org/schema/context/spring-context-2.5.xsd   http://www.springframework.org/schema/task   http://www.springframework.org/schema/task/spring-task-3.0.xsd">
  3.     <context:component-scan base-package="de.myorg.mymod.controller" />
  4.     <context:component-scan base-package="de.myorg.mymod.service" />
  5.     <context:component-scan base-package="de.myorg.mymod.sqlite" />
  6.     <task:annotation-driven executor="defaultExecutor" />
  7.     <task:executor id="defaultExecutor" pool-size="10" />
  8.     <bean id="sendEmailBean" class="de.myorg.mymod.service.impl.SendEmailServiceImpl" />
  9.     <bean id="dbImporterBean" class="de.myorg.mymod.service.impl.DatabaseImporterServiceImpl" />
  10.     <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
  11.         <property name="prefix">
  12.             <value>/jsp/</value>
  13.         </property>
  14.         <property name="suffix">
  15.             <value>.jsp</value>
  16.         </property>
  17.     </bean>
  18.     <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
  19.         <!-- one of the properties available; the maximum file size in bytes -->
  20.         <property name="maxUploadSize" value="50000000" />
  21.     </bean>
  22.     <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
  23.         <property name="host" value="mail.myorg.de" />
  24.         <property name="port" value="25" />
  25.         <property name="username" value="info@myorg.de" />
  26.         <property name="password" value="thatsapassword" />
  27.         <property name="defaultEncoding" value="UTF-8" />
  28.         <property name="javaMailProperties">
  29.             <props>
  30.                 <!-- Use SMTP transport protocol -->
  31.                 <prop key="mail.transport.protocol">smtp</prop>
  32.                 <!-- Use SMTP-AUTH to authenticate to SMTP server -->
  33.                 <prop key="mail.smtp.auth">true</prop>
  34.                 <!-- Use TLS to encrypt communication with SMTP server -->
  35.                 <prop key="mail.smtp.starttls.enable">true</prop>
  36.                 <prop key="mail.debug">true</prop>
  37.                 <prop key="mail.smtp.socketFactory.fallback">false</prop>
  38.             </props>
  39.         </property>
  40.     </bean>
  41.     <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
  42.         <property name="driverClassName" value="org.sqlite.JDBC" />
  43.         <property name="url" value="jdbc:sqlite:C:/opt/mymod/conf/stopword.db" />
  44.     </bean>
  45. </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement