blob: 073bf26317965c8f6a47f411218f28c245151999 [file] [log] [blame]
Michael Hanlca740d72015-06-16 10:04:58 +02001<?xml version="1.0" encoding="UTF-8"?>
2<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
margaretha35e1ca22023-11-16 22:00:01 +01003 xmlns:p="http://www.springframework.org/schema/p"
4 xmlns:util="http://www.springframework.org/schema/util"
5 xmlns:aop="http://www.springframework.org/schema/aop"
6 xmlns:tx="http://www.springframework.org/schema/tx"
7 xmlns="http://www.springframework.org/schema/beans"
8 xmlns:context="http://www.springframework.org/schema/context"
margaretha543f2002017-07-14 00:27:15 +02009 xmlns:cache="http://www.springframework.org/schema/cache"
10 xsi:schemaLocation="http://www.springframework.org/schema/beans
margaretha3da7cd32018-10-22 17:42:52 +020011 http://www.springframework.org/schema/beans/spring-beans.xsd
margaretha543f2002017-07-14 00:27:15 +020012 http://www.springframework.org/schema/tx
margaretha3da7cd32018-10-22 17:42:52 +020013 http://www.springframework.org/schema/tx/spring-tx.xsd
margaretha543f2002017-07-14 00:27:15 +020014 http://www.springframework.org/schema/aop
margaretha3da7cd32018-10-22 17:42:52 +020015 http://www.springframework.org/schema/aop/spring-aop.xsd
margaretha543f2002017-07-14 00:27:15 +020016 http://www.springframework.org/schema/context
margaretha3da7cd32018-10-22 17:42:52 +020017 http://www.springframework.org/schema/context/spring-context.xsd
margaretha543f2002017-07-14 00:27:15 +020018 http://www.springframework.org/schema/util
margaretha3da7cd32018-10-22 17:42:52 +020019 http://www.springframework.org/schema/util/spring-util.xsd">
margaretha543f2002017-07-14 00:27:15 +020020
margaretha35e1ca22023-11-16 22:00:01 +010021 <context:component-scan
22 base-package="de.ids_mannheim.korap" />
margaretha543f2002017-07-14 00:27:15 +020023 <context:annotation-config />
24
25 <bean id="props"
26 class="org.springframework.beans.factory.config.PropertiesFactoryBean">
27 <property name="ignoreResourceNotFound" value="true" />
28 <property name="locations">
29 <array>
30 <value>classpath:kustvakt.conf</value>
31 <value>file:./kustvakt.conf</value>
32 </array>
33 </property>
34 </bean>
35
36 <bean id="placeholders"
37 class="org.springframework.context.support.PropertySourcesPlaceholderConfigurer">
38 <property name="ignoreResourceNotFound" value="true" />
39 <property name="locations">
40 <array>
margarethaaecee1b2018-02-20 14:44:21 +010041 <value>classpath:properties/jdbc.properties</value>
margarethaea68a0a2017-09-21 03:09:49 +020042 <value>file:./jdbc.properties</value>
margarethaaecee1b2018-02-20 14:44:21 +010043 <value>classpath:properties/mail.properties</value>
44 <value>file:./mail.properties</value>
margarethacc7feb62023-05-09 08:57:46 +020045 <value>classpath:properties/hibernate.properties</value>
margaretha0e8f4e72018-04-05 14:11:52 +020046
margarethaade7d4a2017-07-20 19:53:35 +020047 <value>classpath:kustvakt.conf</value>
margaretha14503cd2017-09-08 15:35:24 +020048 <value>file:./kustvakt.conf</value>
margaretha543f2002017-07-14 00:27:15 +020049 </array>
50 </property>
51 </bean>
52
margaretha35e1ca22023-11-16 22:00:01 +010053 <!-- <bean id='cacheManager' class='org.springframework.cache.ehcache.EhCacheCacheManager'
54 p:cacheManager-ref='ehcache' /> <bean id='ehcache' class='org.springframework.cache.ehcache.EhCacheManagerFactoryBean'
55 p:configLocation='classpath:ehcache.xml' p:shared='true' /> -->
margaretha543f2002017-07-14 00:27:15 +020056 <!--class="org.apache.commons.dbcp2.BasicDataSource" -->
57 <!-- org.springframework.jdbc.datasource.SingleConnectionDataSource -->
margaretha35e1ca22023-11-16 22:00:01 +010058 <bean id="dataSource"
59 class="org.apache.commons.dbcp2.BasicDataSource" lazy-init="true">
60 <property name="driverClassName"
61 value="${jdbc.driverClassName}" />
margaretha543f2002017-07-14 00:27:15 +020062 <property name="url" value="${jdbc.url}" />
63 <property name="username" value="${jdbc.username}" />
64 <property name="password" value="${jdbc.password}" />
65 <!-- relevant for single connection datasource and sqlite -->
66 <!-- <property name="suppressClose"> <value>true</value> </property> -->
67 <!--<property name="initialSize" value="2"/> -->
68 <property name="maxTotal" value="4" />
69 <property name="maxIdle" value="2" />
70 <property name="minIdle" value="1" />
margaretha45211af2018-08-28 12:49:07 +020071 <property name="maxWaitMillis" value="-1" />
margaretha543f2002017-07-14 00:27:15 +020072 <!--<property name="poolPreparedStatements" value="true"/> -->
73 </bean>
margaretha35e1ca22023-11-16 22:00:01 +010074
75 <bean id="c3p0DataSource"
76 class="com.mchange.v2.c3p0.ComboPooledDataSource"
margaretha45211af2018-08-28 12:49:07 +020077 destroy-method="close" lazy-init="true">
78 <property name="driverClass" value="${jdbc.driverClassName}" />
79 <property name="jdbcUrl" value="${jdbc.url}" />
80 <property name="user" value="${jdbc.username}" />
81 <property name="password" value="${jdbc.password}" />
82 <property name="maxPoolSize" value="4" />
83 <property name="minPoolSize" value="1" />
84 <property name="maxStatements" value="100" />
85 <!-- <property name="testConnectionOnCheckOut" value="true" /> -->
86 <property name="idleConnectionTestPeriod" value="60" />
87 <property name="testConnectionOnCheckin" value="true" />
88 </bean>
margaretha543f2002017-07-14 00:27:15 +020089
90 <bean id="sqliteDataSource"
91 class="org.springframework.jdbc.datasource.SingleConnectionDataSource"
92 lazy-init="true">
margaretha35e1ca22023-11-16 22:00:01 +010093 <property name="driverClassName"
94 value="${jdbc.driverClassName}" />
margaretha543f2002017-07-14 00:27:15 +020095 <property name="url" value="${jdbc.url}" />
96 <property name="username" value="${jdbc.username}" />
97 <property name="password" value="${jdbc.password}" />
margarethae6c711b2018-02-06 21:55:04 +010098 <property name="connectionProperties">
margaretha0e8f4e72018-04-05 14:11:52 +020099 <props>
100 <prop key="date_string_format">yyyy-MM-dd HH:mm:ss</prop>
101 </props>
102 </property>
103
margaretha543f2002017-07-14 00:27:15 +0200104 <!-- relevant for single connection datasource and sqlite -->
105 <property name="suppressClose">
106 <value>true</value>
107 </property>
108 <!--<property name="initialSize" value="2"/> -->
109 <!--<property name="poolPreparedStatements" value="true"/> -->
110 </bean>
111
112 <!-- to configure database for sqlite, mysql, etc. migrations -->
margaretha35e1ca22023-11-16 22:00:01 +0100113 <bean id="flywayConfig"
114 class="org.flywaydb.core.api.configuration.ClassicConfiguration">
margarethaf6d5a822017-10-19 19:51:20 +0200115 <property name="baselineOnMigrate" value="true" />
margarethaecbe72d2017-07-26 17:13:32 +0200116 <!-- <property name="validateOnMigrate" value="false" /> -->
117 <!-- <property name="cleanOnValidationError" value="true" /> -->
margaretha35e1ca22023-11-16 22:00:01 +0100118 <property name="locations"
119 value="#{'${jdbc.schemaPath}'.split(',')}" />
margaretha8fe51e92023-09-20 11:22:20 +0200120 <property name="dataSource" ref="dataSource" />
121 <!-- <property name="dataSource" ref="sqliteDataSource" /> -->
margaretha8514d782018-08-28 17:36:56 +0200122 <!-- <property name="dataSource" ref="c3p0DataSource" /> -->
margarethad66a6832022-03-03 08:47:13 +0100123 <property name="outOfOrder" value="true" />
margaretha543f2002017-07-14 00:27:15 +0200124 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100125
126 <bean id="flyway" class="org.flywaydb.core.Flyway"
127 init-method="migrate">
128 <constructor-arg ref="flywayConfig" />
margarethafcf8bd92021-01-14 10:55:53 +0100129 </bean>
margaretha0e8f4e72018-04-05 14:11:52 +0200130
margaretha543f2002017-07-14 00:27:15 +0200131 <bean id="entityManagerFactory"
margarethafcf8bd92021-01-14 10:55:53 +0100132 class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
133 depends-on="flyway">
margaretha8fe51e92023-09-20 11:22:20 +0200134 <property name="dataSource" ref="dataSource" />
margaretha35e1ca22023-11-16 22:00:01 +0100135 <!-- <property name="dataSource" ref="sqliteDataSource" /> -->
margaretha8514d782018-08-28 17:36:56 +0200136 <!-- <property name="dataSource" ref="c3p0DataSource" /> -->
margaretha0e8f4e72018-04-05 14:11:52 +0200137
margarethaa452c5e2018-04-25 22:48:09 +0200138 <property name="packagesToScan">
139 <array>
margaretha5b708792023-05-12 16:55:29 +0200140 <value>de.ids_mannheim.korap.core.entity</value>
margarethaa452c5e2018-04-25 22:48:09 +0200141 <value>de.ids_mannheim.korap.entity</value>
142 <value>de.ids_mannheim.korap.oauth2.entity</value>
143 </array>
144 </property>
margaretha543f2002017-07-14 00:27:15 +0200145 <property name="jpaVendorAdapter">
146 <bean id="jpaVendorAdapter"
147 class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
margaretha35e1ca22023-11-16 22:00:01 +0100148 <property name="databasePlatform"
149 value="${hibernate.dialect}" />
margaretha543f2002017-07-14 00:27:15 +0200150 </bean>
151 </property>
152 <property name="jpaProperties">
153 <props>
154 <prop key="hibernate.dialect">${hibernate.dialect}</prop>
155 <prop key="hibernate.hbm2ddl.auto">${hibernate.hbm2ddl.auto}</prop>
156 <prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
157 <prop key="hibernate.cache.use_query_cache">${hibernate.cache.use_query_cache}</prop>
158 <prop key="hibernate.cache.use_second_level_cache">${hibernate.cache.use_second_level_cache}
159 </prop>
160 <prop key="hibernate.cache.provider_class">${hibernate.cache.provider}</prop>
161 <prop key="hibernate.cache.region.factory_class">${hibernate.cache.region.factory}</prop>
margaretha6ad08b42018-08-22 18:33:54 +0200162 <prop key="hibernate.jdbc.time_zone">${hibernate.jdbc.time_zone}</prop>
margaretha543f2002017-07-14 00:27:15 +0200163 </props>
164 </property>
165 </bean>
166
167 <tx:annotation-driven proxy-target-class="true"
168 transaction-manager="transactionManager" />
margaretha0e8f4e72018-04-05 14:11:52 +0200169
margaretha35e1ca22023-11-16 22:00:01 +0100170 <bean id="transactionManager"
171 class="org.springframework.orm.jpa.JpaTransactionManager">
172 <property name="entityManagerFactory"
173 ref="entityManagerFactory" />
margaretha543f2002017-07-14 00:27:15 +0200174 </bean>
175
176 <bean id="transactionTemplate"
177 class="org.springframework.transaction.support.TransactionTemplate">
178 <constructor-arg ref="transactionManager" />
179 </bean>
180
margarethaade7d4a2017-07-20 19:53:35 +0200181 <!-- Data access objects -->
margaretha34954472018-10-24 20:05:17 +0200182 <bean id="adminDao" class="de.ids_mannheim.korap.dao.AdminDaoImpl" />
margaretha35e1ca22023-11-16 22:00:01 +0100183 <bean id="authorizationDao"
184 class="de.ids_mannheim.korap.oauth2.dao.CachedAuthorizationDaoImpl" />
margarethab4ce6602018-04-26 20:23:57 +0200185
margaretha34954472018-10-24 20:05:17 +0200186 <!-- Filters -->
margaretha35e1ca22023-11-16 22:00:01 +0100187 <!-- <bean id="authenticationFilter" class="de.ids_mannheim.korap.web.filter.AuthenticationFilter"
188 > <property name="authenticationManager" ref="kustvakt_authenticationmanager"/>
189 </bean> <bean id="piwikFilter" class="de.ids_mannheim.korap.web.filter.PiwikFilter"
190 > <property name="authenticationManager" ref="kustvakt_authenticationmanager"/>
191 </bean> -->
192
margaretha34954472018-10-24 20:05:17 +0200193 <!-- Services -->
margaretha35e1ca22023-11-16 22:00:01 +0100194 <bean id="scopeService"
195 class="de.ids_mannheim.korap.oauth2.service.OAuth2ScopeServiceImpl" />
196
margarethab4ce6602018-04-26 20:23:57 +0200197 <!-- props are injected from default-config.xml -->
margaretha35e1ca22023-11-16 22:00:01 +0100198 <bean id="kustvakt_config"
199 class="de.ids_mannheim.korap.config.FullConfiguration">
margarethab4ce6602018-04-26 20:23:57 +0200200 <constructor-arg name="properties" ref="props" />
201 </bean>
202
margaretha35e1ca22023-11-16 22:00:01 +0100203 <bean id="initializator"
204 class="de.ids_mannheim.korap.init.Initializator" init-method="init">
margarethab4ce6602018-04-26 20:23:57 +0200205 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100206
margarethaade7d4a2017-07-20 19:53:35 +0200207 <!-- Krill -->
margaretha35e1ca22023-11-16 22:00:01 +0100208 <bean id="search_krill"
209 class="de.ids_mannheim.korap.web.SearchKrill">
margaretha0e8f4e72018-04-05 14:11:52 +0200210 <constructor-arg value="${krill.indexDir}" />
margaretha543f2002017-07-14 00:27:15 +0200211 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100212
margaretha6cd27f32019-01-24 14:47:47 +0100213 <!-- Validator -->
margaretha35e1ca22023-11-16 22:00:01 +0100214 <bean id="validator"
215 class="de.ids_mannheim.korap.validator.ApacheValidator" />
margaretha543f2002017-07-14 00:27:15 +0200216
margaretha31a9f522018-04-03 20:40:45 +0200217 <!-- URLValidator -->
margaretha35e1ca22023-11-16 22:00:01 +0100218 <bean id="redirectURIValidator"
219 class="org.apache.commons.validator.routines.UrlValidator">
margarethae4034a82018-07-02 14:46:59 +0200220 <constructor-arg value="http,https" index="0" />
margaretha35e1ca22023-11-16 22:00:01 +0100221 <constructor-arg index="1" type="long"
222 value="#{T(org.apache.commons.validator.routines.UrlValidator).ALLOW_LOCAL_URLS +
223 T(org.apache.commons.validator.routines.UrlValidator).NO_FRAGMENTS}" />
224
225 <!-- <constructor-arg index="1" type="long"> <util:constant static-field="org.apache.commons.validator.routines.UrlValidator.NO_FRAGMENTS"
226 /> </constructor-arg> -->
margarethaa0486272018-04-12 19:59:31 +0200227 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100228 <bean id="urlValidator"
229 class="org.apache.commons.validator.routines.UrlValidator">
margarethad7cab212018-07-02 19:01:43 +0200230 <constructor-arg value="http,https" />
231 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100232
margaretha34954472018-10-24 20:05:17 +0200233 <!-- Rewrite -->
margaretha35e1ca22023-11-16 22:00:01 +0100234 <bean id="foundryRewrite"
235 class="de.ids_mannheim.korap.rewrite.FoundryRewrite" />
236 <bean id="collectionRewrite"
237 class="de.ids_mannheim.korap.rewrite.CollectionRewrite" />
238 <bean id="virtualCorpusRewrite"
239 class="de.ids_mannheim.korap.rewrite.VirtualCorpusRewrite" />
240 <bean id="queryReferenceRewrite"
241 class="de.ids_mannheim.korap.rewrite.QueryReferenceRewrite" />
242
margaretha4fa4b062019-01-28 19:43:30 +0100243 <util:list id="rewriteTasks"
244 value-type="de.ids_mannheim.korap.rewrite.RewriteTask">
245 <ref bean="foundryRewrite" />
246 <ref bean="collectionRewrite" />
247 <ref bean="virtualCorpusRewrite" />
margaretha35e1ca22023-11-16 22:00:01 +0100248 <ref bean="queryReferenceRewrite" />
margaretha4fa4b062019-01-28 19:43:30 +0100249 </util:list>
margaretha35e1ca22023-11-16 22:00:01 +0100250
251 <bean id="rewriteHandler"
252 class="de.ids_mannheim.korap.rewrite.RewriteHandler">
253 <constructor-arg ref="rewriteTasks" />
margaretha56e8e552017-12-05 16:31:21 +0100254 </bean>
255
margaretha35e1ca22023-11-16 22:00:01 +0100256 <bean id="kustvaktResponseHandler"
257 class="de.ids_mannheim.korap.web.KustvaktResponseHandler">
margaretha0e8f4e72018-04-05 14:11:52 +0200258 </bean>
margarethaa452c5e2018-04-25 22:48:09 +0200259
margarethafb027f92018-04-23 20:00:13 +0200260 <!-- OAuth -->
margaretha35e1ca22023-11-16 22:00:01 +0100261 <bean id="oauth2ResponseHandler"
262 class="de.ids_mannheim.korap.web.OAuth2ResponseHandler">
margaretha05122312018-04-16 15:01:34 +0200263 </bean>
margarethaa452c5e2018-04-25 22:48:09 +0200264
margaretha35e1ca22023-11-16 22:00:01 +0100265 <bean name="kustvakt_encryption"
266 class="de.ids_mannheim.korap.encryption.KustvaktEncryption">
margaretha543f2002017-07-14 00:27:15 +0200267 <constructor-arg ref="kustvakt_config" />
268 </bean>
269
270 <!-- authentication providers to use -->
margaretha543f2002017-07-14 00:27:15 +0200271
margaretha35e1ca22023-11-16 22:00:01 +0100272 <!-- <bean id="session_auth" class="de.ids_mannheim.korap.authentication.SessionAuthentication">
273 <constructor-arg type="de.ids_mannheim.korap.config.KustvaktConfiguration"
274 ref="kustvakt_config" /> <constructor-arg type="de.ids_mannheim.korap.interfaces.EncryptionIface"
275 ref="kustvakt_encryption" /> </bean> -->
Michael Hanlca740d72015-06-16 10:04:58 +0200276
margarethacf306d32018-05-30 19:45:35 +0200277 <bean id="oauth2_auth"
278 class="de.ids_mannheim.korap.authentication.OAuth2Authentication" />
margaretha35e1ca22023-11-16 22:00:01 +0100279
margaretha543f2002017-07-14 00:27:15 +0200280 <util:list id="kustvakt_authproviders"
281 value-type="de.ids_mannheim.korap.interfaces.AuthenticationIface">
margarethaac49b502023-04-18 11:01:48 +0200282 <!-- <ref bean="session_auth" /> -->
margarethacf306d32018-05-30 19:45:35 +0200283 <ref bean="oauth2_auth" />
margaretha543f2002017-07-14 00:27:15 +0200284 </util:list>
Michael Hanl72c7b832015-09-03 08:42:15 +0200285
286
margaretha543f2002017-07-14 00:27:15 +0200287 <!-- specify type for constructor argument -->
margaretha34954472018-10-24 20:05:17 +0200288 <bean id="authenticationManager"
margaretha139d0f72017-11-14 18:56:22 +0100289 class="de.ids_mannheim.korap.authentication.KustvaktAuthenticationManager">
margaretha35e1ca22023-11-16 22:00:01 +0100290 <constructor-arg
291 type="de.ids_mannheim.korap.interfaces.EncryptionIface"
margaretha543f2002017-07-14 00:27:15 +0200292 ref="kustvakt_encryption" />
293 <constructor-arg ref="kustvakt_config" />
margaretha543f2002017-07-14 00:27:15 +0200294 <!-- inject authentication providers to use -->
295 <property name="providers" ref="kustvakt_authproviders" />
296 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100297
margaretha543f2002017-07-14 00:27:15 +0200298 <!-- todo: if db interfaces not loaded via spring, does transaction even
299 work then? -->
300 <!-- the transactional advice (i.e. what 'happens'; see the <aop:advisor/>
301 bean below) -->
302 <tx:advice id="txAdvice" transaction-manager="txManager">
303 <!-- the transactional semantics... -->
304 <tx:attributes>
305 <!-- all methods starting with 'get' are read-only -->
margaretha35e1ca22023-11-16 22:00:01 +0100306 <tx:method name="get*" read-only="true"
307 rollback-for="KorAPException" />
margaretha543f2002017-07-14 00:27:15 +0200308 <!-- other methods use the default transaction settings (see below) -->
309 <tx:method name="*" rollback-for="KorAPException" />
310 </tx:attributes>
311 </tx:advice>
Michael Hanldaf86602016-05-12 14:31:52 +0200312
margaretha543f2002017-07-14 00:27:15 +0200313 <!-- ensure that the above transactional advice runs for any execution of
314 an operation defined by the service interface -->
315 <aop:config>
316 <aop:pointcut id="service"
317 expression="execution(* de.ids_mannheim.korap.interfaces.db.*.*(..))" />
318 <aop:advisor advice-ref="txAdvice" pointcut-ref="service" />
319 </aop:config>
Michael Hanlf8fcc7a2016-06-03 17:41:07 +0200320
margaretha543f2002017-07-14 00:27:15 +0200321 <!-- similarly, don't forget the PlatformTransactionManager -->
322 <bean id="txManager"
323 class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
margaretha894a7d72017-11-08 19:24:20 +0100324 <!-- <property name="dataSource" ref="dataSource" /> -->
margaretha8514d782018-08-28 17:36:56 +0200325 <property name="dataSource" ref="sqliteDataSource" />
326 <!-- <property name="dataSource" ref="c3p0DataSource" /> -->
margaretha543f2002017-07-14 00:27:15 +0200327 </bean>
margaretha0e8f4e72018-04-05 14:11:52 +0200328
margarethac9f1dfa2018-02-07 17:50:33 +0100329 <!-- mail -->
margaretha35e1ca22023-11-16 22:00:01 +0100330 <bean id="authenticator"
331 class="de.ids_mannheim.korap.service.MailAuthenticator">
margaretha0e8f4e72018-04-05 14:11:52 +0200332 <constructor-arg index="0" value="${mail.username}" />
333 <constructor-arg index="1" value="${mail.password}" />
margarethaaecee1b2018-02-20 14:44:21 +0100334 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100335 <bean id="smtpSession" class="jakarta.mail.Session"
336 factory-method="getInstance">
margarethaaecee1b2018-02-20 14:44:21 +0100337 <constructor-arg index="0">
338 <props>
339 <prop key="mail.smtp.submitter">${mail.username}</prop>
340 <prop key="mail.smtp.auth">${mail.auth}</prop>
341 <prop key="mail.smtp.host">${mail.host}</prop>
342 <prop key="mail.smtp.port">${mail.port}</prop>
343 <prop key="mail.smtp.starttls.enable">${mail.starttls.enable}</prop>
344 <prop key="mail.smtp.connectiontimeout">${mail.connectiontimeout}</prop>
345 </props>
346 </constructor-arg>
margaretha0e8f4e72018-04-05 14:11:52 +0200347 <constructor-arg index="1" ref="authenticator" />
margarethac9f1dfa2018-02-07 17:50:33 +0100348 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100349 <bean id="mailSender"
350 class="org.springframework.mail.javamail.JavaMailSenderImpl">
margarethaaecee1b2018-02-20 14:44:21 +0100351 <property name="username" value="${mail.username}" />
margaretha0e8f4e72018-04-05 14:11:52 +0200352 <property name="password" value="${mail.password}" />
margarethac9f1dfa2018-02-07 17:50:33 +0100353 <property name="session" ref="smtpSession" />
354 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100355 <bean id="velocityEngine"
356 class="org.apache.velocity.app.VelocityEngine">
margarethac9f1dfa2018-02-07 17:50:33 +0100357 <constructor-arg index="0">
358 <props>
359 <prop key="resource.loader">class</prop>
margaretha0e8f4e72018-04-05 14:11:52 +0200360 <prop key="class.resource.loader.class">org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
361 </prop>
margarethac9f1dfa2018-02-07 17:50:33 +0100362 </props>
363 </constructor-arg>
margarethaaecee1b2018-02-20 14:44:21 +0100364 </bean>
Akronbee031a2020-10-29 16:58:14 +0100365</beans>