Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <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">
- <context:component-scan base-package="de.myorg.mymod.controller" />
- <context:component-scan base-package="de.myorg.mymod.service" />
- <context:component-scan base-package="de.myorg.mymod.sqlite" />
- <task:annotation-driven executor="defaultExecutor" />
- <task:executor id="defaultExecutor" pool-size="10" />
- <bean id="sendEmailBean" class="de.myorg.mymod.service.impl.SendEmailServiceImpl" />
- <bean id="dbImporterBean" class="de.myorg.mymod.service.impl.DatabaseImporterServiceImpl" />
- <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
- <property name="prefix">
- <value>/jsp/</value>
- </property>
- <property name="suffix">
- <value>.jsp</value>
- </property>
- </bean>
- <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
- <!-- one of the properties available; the maximum file size in bytes -->
- <property name="maxUploadSize" value="50000000" />
- </bean>
- <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
- <property name="host" value="mail.myorg.de" />
- <property name="port" value="25" />
- <property name="username" value="info@myorg.de" />
- <property name="password" value="thatsapassword" />
- <property name="defaultEncoding" value="UTF-8" />
- <property name="javaMailProperties">
- <props>
- <!-- Use SMTP transport protocol -->
- <prop key="mail.transport.protocol">smtp</prop>
- <!-- Use SMTP-AUTH to authenticate to SMTP server -->
- <prop key="mail.smtp.auth">true</prop>
- <!-- Use TLS to encrypt communication with SMTP server -->
- <prop key="mail.smtp.starttls.enable">true</prop>
- <prop key="mail.debug">true</prop>
- <prop key="mail.smtp.socketFactory.fallback">false</prop>
- </props>
- </property>
- </bean>
- <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
- <property name="driverClassName" value="org.sqlite.JDBC" />
- <property name="url" value="jdbc:sqlite:C:/opt/mymod/conf/stopword.db" />
- </bean>
- </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement