blob: cae02485c74fb6b8bdd9b2035c87954e8da52e3d [file] [log] [blame]
Michael Hanlbd852b82015-11-18 22:17:00 +01001<?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"
margarethaade7d4a2017-07-20 19:53:35 +02009 xmlns:cache="http://www.springframework.org/schema/cache"
margaretha62055f72017-04-11 19:17:43 +020010 xsi:schemaLocation="http://www.springframework.org/schema/beans
margaretha3da7cd32018-10-22 17:42:52 +020011 http://www.springframework.org/schema/beans/spring-beans.xsd
margarethaade7d4a2017-07-20 19:53:35 +020012 http://www.springframework.org/schema/tx
margaretha3da7cd32018-10-22 17:42:52 +020013 http://www.springframework.org/schema/tx/spring-tx.xsd
margarethaade7d4a2017-07-20 19:53:35 +020014 http://www.springframework.org/schema/aop
margaretha3da7cd32018-10-22 17:42:52 +020015 http://www.springframework.org/schema/aop/spring-aop.xsd
margarethaade7d4a2017-07-20 19:53:35 +020016 http://www.springframework.org/schema/context
margaretha3da7cd32018-10-22 17:42:52 +020017 http://www.springframework.org/schema/context/spring-context.xsd
margarethaade7d4a2017-07-20 19:53:35 +020018 http://www.springframework.org/schema/util
margaretha3da7cd32018-10-22 17:42:52 +020019 http://www.springframework.org/schema/util/spring-util.xsd">
Michael Hanlbd852b82015-11-18 22:17:00 +010020
margaretha35e1ca22023-11-16 22:00:01 +010021 <context:component-scan
22 base-package="de.ids_mannheim.korap" />
margarethaade7d4a2017-07-20 19:53:35 +020023 <context:annotation-config />
Michael Hanlbd852b82015-11-18 22:17:00 +010024
margaretha62055f72017-04-11 19:17:43 +020025 <bean id="props"
26 class="org.springframework.beans.factory.config.PropertiesFactoryBean">
27 <property name="ignoreResourceNotFound" value="true" />
28 <property name="locations">
29 <array>
margaretha0c47c652017-04-19 18:44:40 +020030 <value>classpath:kustvakt-test.conf</value>
31 <value>file:./kustvakt-test.conf</value>
margaretha62055f72017-04-11 19:17:43 +020032 </array>
33 </property>
34 </bean>
Michael Hanlbd852b82015-11-18 22:17:00 +010035
margarethaade7d4a2017-07-20 19:53:35 +020036 <bean id="placeholders"
37 class="org.springframework.context.support.PropertySourcesPlaceholderConfigurer">
margaretha62055f72017-04-11 19:17:43 +020038 <property name="ignoreResourceNotFound" value="true" />
39 <property name="locations">
40 <array>
margaretha6c2a20f2017-07-24 15:33:01 +020041 <value>classpath:test-jdbc.properties</value>
margaretha1f106f62017-10-18 22:27:30 +020042 <value>file:./test-jdbc.properties</value>
margarethaaecee1b2018-02-20 14:44:21 +010043 <value>classpath:properties/mail.properties</value>
44 <value>file:./mail.properties</value>
margarethaf6d5a822017-10-19 19:51:20 +020045 <value>classpath:test-hibernate.properties</value>
margaretha1960ea52023-02-28 11:20:15 +010046 <value>file:./kustvakt-test.conf</value>
margarethaf18298b2017-09-14 22:14:32 +020047 <value>classpath:kustvakt-test.conf</value>
margaretha62055f72017-04-11 19:17:43 +020048 </array>
49 </property>
50 </bean>
Michael Hanlbd852b82015-11-18 22:17:00 +010051
margaretha35e1ca22023-11-16 22:00:01 +010052 <!-- <bean id='cacheManager' class='org.springframework.cache.ehcache.EhCacheCacheManager'
53 p:cacheManager-ref='ehcache' /> <bean id='ehcache' class='org.springframework.cache.ehcache.EhCacheManagerFactoryBean'
margaretha7c21ec82023-08-21 09:55:58 +020054 p:configLocation='classpath:ehcache.xml' p:shared='true' /> -->
Michael Hanlbd852b82015-11-18 22:17:00 +010055
margaretha35e1ca22023-11-16 22:00:01 +010056 <bean id="dataSource"
57 class="org.apache.commons.dbcp2.BasicDataSource" lazy-init="true">
margaretha4edc70e2018-03-14 22:34:29 +010058 <!-- <property name="driverClassName" value="${jdbc.driverClassName}" /> -->
margaretha6c2a20f2017-07-24 15:33:01 +020059 <property name="url" value="${jdbc.url}" />
60 <property name="username" value="${jdbc.username}" />
61 <property name="password" value="${jdbc.password}" />
margaretha318fec32017-10-24 12:11:58 +020062 <property name="maxTotal" value="4" />
margaretha514e1412017-10-10 15:54:20 +020063 <property name="maxIdle" value="1" />
margaretha6c2a20f2017-07-24 15:33:01 +020064 <property name="minIdle" value="1" />
65 <property name="maxWaitMillis" value="15000" />
66 <!--<property name="poolPreparedStatements" value="true"/> -->
67 </bean>
68
margaretha09a9a582024-01-11 21:48:20 +010069<!-- <bean id="sqliteDataSource"
margaretha62055f72017-04-11 19:17:43 +020070 class="org.springframework.jdbc.datasource.SingleConnectionDataSource"
margaretha318fec32017-10-24 12:11:58 +020071 lazy-init="true">
margaretha09a9a582024-01-11 21:48:20 +010072 <property name="driverClassName" value="${jdbc.driverClassName}" />
margaretha6c2a20f2017-07-24 15:33:01 +020073 <property name="url" value="${jdbc.url}" />
74 <property name="username" value="${jdbc.username}" />
75 <property name="password" value="${jdbc.password}" />
margarethae6c711b2018-02-06 21:55:04 +010076 <property name="connectionProperties">
margaretha58e18632018-02-15 13:04:42 +010077 <props>
78 <prop key="date_string_format">yyyy-MM-dd HH:mm:ss</prop>
79 </props>
80 </property>
81
margaretha09a9a582024-01-11 21:48:20 +010082 Sqlite can only have a single connection
margaretha62055f72017-04-11 19:17:43 +020083 <property name="suppressClose">
84 <value>true</value>
85 </property>
margaretha514e1412017-10-10 15:54:20 +020086 </bean>
margaretha09a9a582024-01-11 21:48:20 +010087 -->
margaretha35e1ca22023-11-16 22:00:01 +010088 <bean id="c3p0DataSource"
89 class="com.mchange.v2.c3p0.ComboPooledDataSource"
margaretha58e18632018-02-15 13:04:42 +010090 destroy-method="close">
91 <property name="driverClass" value="${jdbc.driverClassName}" />
margaretha514e1412017-10-10 15:54:20 +020092 <property name="jdbcUrl" value="${jdbc.url}" />
93 <property name="user" value="${jdbc.username}" />
94 <property name="password" value="${jdbc.password}" />
margaretha58e18632018-02-15 13:04:42 +010095 <property name="maxPoolSize" value="4" />
96 <property name="minPoolSize" value="1" />
97 <property name="maxStatements" value="1" />
98 <property name="testConnectionOnCheckout" value="true" />
margaretha62055f72017-04-11 19:17:43 +020099 </bean>
Michael Hanlbd852b82015-11-18 22:17:00 +0100100
margaretha62055f72017-04-11 19:17:43 +0200101 <!-- to configure database for sqlite, mysql, etc. migrations -->
margaretha35e1ca22023-11-16 22:00:01 +0100102 <bean id="flywayConfig"
103 class="org.flywaydb.core.api.configuration.ClassicConfiguration">
margarethaf6d5a822017-10-19 19:51:20 +0200104 <!-- drop existing tables and create new tables -->
105 <property name="validateOnMigrate" value="true" />
106 <property name="cleanOnValidationError" value="true" />
margaretha514e1412017-10-10 15:54:20 +0200107 <property name="baselineOnMigrate" value="false" />
margaretha35e1ca22023-11-16 22:00:01 +0100108 <property name="locations"
109 value="#{'${jdbc.schemaPath}'.split(',')}" />
margaretha8fe51e92023-09-20 11:22:20 +0200110 <!-- <property name="dataSource" ref="sqliteDataSource" /> -->
111 <property name="dataSource" ref="dataSource" />
margarethad66a6832022-03-03 08:47:13 +0100112 <property name="outOfOrder" value="true" />
margaretha62055f72017-04-11 19:17:43 +0200113 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100114
115 <bean id="flyway" class="org.flywaydb.core.Flyway"
116 init-method="migrate">
117 <constructor-arg ref="flywayConfig" />
margarethafcf8bd92021-01-14 10:55:53 +0100118 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100119
Michael Hanlbd852b82015-11-18 22:17:00 +0100120
margarethaade7d4a2017-07-20 19:53:35 +0200121 <bean id="entityManagerFactory"
122 class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
margaretha8fe51e92023-09-20 11:22:20 +0200123 <property name="dataSource" ref="dataSource" />
124 <!-- <property name="dataSource" ref="sqliteDataSource" /> -->
margarethaa452c5e2018-04-25 22:48:09 +0200125 <property name="packagesToScan">
126 <array>
margaretha5b708792023-05-12 16:55:29 +0200127 <value>de.ids_mannheim.korap.core.entity</value>
margarethaa452c5e2018-04-25 22:48:09 +0200128 <value>de.ids_mannheim.korap.entity</value>
129 <value>de.ids_mannheim.korap.oauth2.entity</value>
130 </array>
131 </property>
margarethaade7d4a2017-07-20 19:53:35 +0200132 <property name="jpaVendorAdapter">
133 <bean id="jpaVendorAdapter"
134 class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
margaretha35e1ca22023-11-16 22:00:01 +0100135 <property name="databasePlatform"
136 value="${hibernate.dialect}" />
margarethaade7d4a2017-07-20 19:53:35 +0200137 </bean>
138 </property>
139 <property name="jpaProperties">
140 <props>
141 <prop key="hibernate.dialect">${hibernate.dialect}</prop>
142 <prop key="hibernate.hbm2ddl.auto">${hibernate.hbm2ddl.auto}</prop>
143 <prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
144 <prop key="hibernate.cache.use_query_cache">${hibernate.cache.use_query_cache}</prop>
145 <prop key="hibernate.cache.use_second_level_cache">${hibernate.cache.use_second_level_cache}
146 </prop>
147 <prop key="hibernate.cache.provider_class">${hibernate.cache.provider}</prop>
148 <prop key="hibernate.cache.region.factory_class">${hibernate.cache.region.factory}</prop>
margaretha6ad08b42018-08-22 18:33:54 +0200149 <prop key="hibernate.jdbc.time_zone">${hibernate.jdbc.time_zone}</prop>
margarethaade7d4a2017-07-20 19:53:35 +0200150 <!-- <prop key="net.sf.ehcache.configurationResourceName">classpath:ehcache.xml</prop> -->
151 </props>
152 </property>
margaretha62055f72017-04-11 19:17:43 +0200153 </bean>
Michael Hanle4fc7752016-02-17 11:41:18 +0100154
margarethaade7d4a2017-07-20 19:53:35 +0200155 <tx:annotation-driven proxy-target-class="true"
156 transaction-manager="transactionManager" />
margaretha35e1ca22023-11-16 22:00:01 +0100157 <bean id="transactionManager"
158 class="org.springframework.orm.jpa.JpaTransactionManager">
159 <property name="entityManagerFactory"
160 ref="entityManagerFactory" />
margaretha62055f72017-04-11 19:17:43 +0200161 </bean>
Michael Hanle4fc7752016-02-17 11:41:18 +0100162
margarethaade7d4a2017-07-20 19:53:35 +0200163 <bean id="transactionTemplate"
164 class="org.springframework.transaction.support.TransactionTemplate">
165 <constructor-arg ref="transactionManager" />
166 </bean>
167
168 <!-- Data access objects -->
margaretha34954472018-10-24 20:05:17 +0200169 <bean id="adminDao" class="de.ids_mannheim.korap.dao.AdminDaoImpl" />
margaretha35e1ca22023-11-16 22:00:01 +0100170 <bean id="resourceDao"
171 class="de.ids_mannheim.korap.dao.ResourceDao" />
172 <bean id="accessScopeDao"
173 class="de.ids_mannheim.korap.oauth2.dao.AccessScopeDao" />
174 <bean id="authorizationDao"
175 class="de.ids_mannheim.korap.oauth2.dao.CachedAuthorizationDaoImpl" />
176
margaretha34954472018-10-24 20:05:17 +0200177 <!-- Services -->
margaretha35e1ca22023-11-16 22:00:01 +0100178 <bean id="scopeService"
179 class="de.ids_mannheim.korap.oauth2.service.OAuth2ScopeServiceImpl" />
180
margarethab4ce6602018-04-26 20:23:57 +0200181 <!-- props are injected from default-config.xml -->
margaretha35e1ca22023-11-16 22:00:01 +0100182 <bean id="kustvakt_config"
183 class="de.ids_mannheim.korap.config.FullConfiguration">
margarethab4ce6602018-04-26 20:23:57 +0200184 <constructor-arg name="properties" ref="props" />
185 </bean>
186
margaretha35e1ca22023-11-16 22:00:01 +0100187 <bean id="initializator"
188 class="de.ids_mannheim.korap.init.Initializator"
margaretha1b320452018-08-02 16:56:25 +0200189 init-method="initTest">
margarethab4ce6602018-04-26 20:23:57 +0200190 </bean>
191
margaretha6c2a20f2017-07-24 15:33:01 +0200192 <!-- Krill -->
margaretha35e1ca22023-11-16 22:00:01 +0100193 <bean id="search_krill"
194 class="de.ids_mannheim.korap.web.SearchKrill">
margaretha58e18632018-02-15 13:04:42 +0100195 <constructor-arg value="${krill.indexDir}" />
margaretha6c2a20f2017-07-24 15:33:01 +0200196 </bean>
197
margaretha6cd27f32019-01-24 14:47:47 +0100198 <!-- Validator -->
margaretha35e1ca22023-11-16 22:00:01 +0100199 <bean id="validator"
200 class="de.ids_mannheim.korap.validator.ApacheValidator" />
201
margaretha31a9f522018-04-03 20:40:45 +0200202 <!-- URLValidator -->
margaretha35e1ca22023-11-16 22:00:01 +0100203 <bean id="redirectURIValidator"
204 class="org.apache.commons.validator.routines.UrlValidator">
margarethae4034a82018-07-02 14:46:59 +0200205 <constructor-arg value="http,https" index="0" />
margaretha35e1ca22023-11-16 22:00:01 +0100206 <constructor-arg index="1" type="long"
207 value="#{T(org.apache.commons.validator.routines.UrlValidator).ALLOW_LOCAL_URLS +
208 T(org.apache.commons.validator.routines.UrlValidator).NO_FRAGMENTS}" />
margaretha31a9f522018-04-03 20:40:45 +0200209 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100210 <bean id="urlValidator"
211 class="org.apache.commons.validator.routines.UrlValidator">
margarethad7cab212018-07-02 19:01:43 +0200212 <constructor-arg value="http,https" />
213 </bean>
margaretha56e8e552017-12-05 16:31:21 +0100214
margaretha4fa4b062019-01-28 19:43:30 +0100215 <!-- Rewrite -->
margaretha35e1ca22023-11-16 22:00:01 +0100216 <bean id="foundryRewrite"
217 class="de.ids_mannheim.korap.rewrite.FoundryRewrite" />
218 <bean id="collectionRewrite"
219 class="de.ids_mannheim.korap.rewrite.CollectionRewrite" />
220 <bean id="collectionCleanRewrite"
221 class="de.ids_mannheim.korap.rewrite.CollectionCleanRewrite" />
222 <bean id="virtualCorpusRewrite"
223 class="de.ids_mannheim.korap.rewrite.VirtualCorpusRewrite" />
224 <bean id="collectionConstraint"
225 class="de.ids_mannheim.korap.rewrite.CollectionConstraint" />
226 <bean id="queryReferenceRewrite"
227 class="de.ids_mannheim.korap.rewrite.QueryReferenceRewrite" />
228
margaretha4fa4b062019-01-28 19:43:30 +0100229 <util:list id="rewriteTasks"
230 value-type="de.ids_mannheim.korap.rewrite.RewriteTask">
margaretha35e1ca22023-11-16 22:00:01 +0100231 <!-- <ref bean="collectionConstraint" /> <ref bean="collectionCleanRewrite"
232 /> -->
margaretha4fa4b062019-01-28 19:43:30 +0100233 <ref bean="foundryRewrite" />
234 <ref bean="collectionRewrite" />
235 <ref bean="virtualCorpusRewrite" />
Akronbee031a2020-10-29 16:58:14 +0100236 <ref bean="queryReferenceRewrite" />
margaretha4fa4b062019-01-28 19:43:30 +0100237 </util:list>
margaretha35e1ca22023-11-16 22:00:01 +0100238
239 <bean id="rewriteHandler"
240 class="de.ids_mannheim.korap.rewrite.RewriteHandler">
241 <constructor-arg ref="rewriteTasks" />
margaretha56e8e552017-12-05 16:31:21 +0100242 </bean>
243
margaretha35e1ca22023-11-16 22:00:01 +0100244 <bean id="kustvaktResponseHandler"
245 class="de.ids_mannheim.korap.web.KustvaktResponseHandler">
margaretha05122312018-04-16 15:01:34 +0200246 </bean>
margarethafb027f92018-04-23 20:00:13 +0200247
248 <!-- OAuth -->
margaretha35e1ca22023-11-16 22:00:01 +0100249 <bean id="oauth2ResponseHandler"
250 class="de.ids_mannheim.korap.web.OAuth2ResponseHandler">
margaretha58e18632018-02-15 13:04:42 +0100251 </bean>
Michael Hanlbd852b82015-11-18 22:17:00 +0100252
margaretha35e1ca22023-11-16 22:00:01 +0100253 <bean name="kustvakt_encryption"
254 class="de.ids_mannheim.korap.encryption.KustvaktEncryption">
margaretha62055f72017-04-11 19:17:43 +0200255 <constructor-arg ref="kustvakt_config" />
256 </bean>
Michael Hanlbd852b82015-11-18 22:17:00 +0100257
margaretha62055f72017-04-11 19:17:43 +0200258 <!-- authentication providers to use -->
margaretha58e18632018-02-15 13:04:42 +0100259 <bean id="basic_auth"
260 class="de.ids_mannheim.korap.authentication.BasicAuthentication" />
Michael Hanlbd852b82015-11-18 22:17:00 +0100261
262
margaretha62055f72017-04-11 19:17:43 +0200263 <bean id="session_auth"
margaretha139d0f72017-11-14 18:56:22 +0100264 class="de.ids_mannheim.korap.authentication.SessionAuthentication">
margaretha35e1ca22023-11-16 22:00:01 +0100265 <constructor-arg
266 type="de.ids_mannheim.korap.config.KustvaktConfiguration"
margaretha62055f72017-04-11 19:17:43 +0200267 ref="kustvakt_config" />
margaretha35e1ca22023-11-16 22:00:01 +0100268 <constructor-arg
269 type="de.ids_mannheim.korap.interfaces.EncryptionIface"
margaretha62055f72017-04-11 19:17:43 +0200270 ref="kustvakt_encryption" />
271 </bean>
margarethae4034a82018-07-02 14:46:59 +0200272
margarethacf306d32018-05-30 19:45:35 +0200273 <bean id="oauth2_auth"
274 class="de.ids_mannheim.korap.authentication.OAuth2Authentication" />
margarethae4034a82018-07-02 14:46:59 +0200275
Michael Hanlbd852b82015-11-18 22:17:00 +0100276
margaretha62055f72017-04-11 19:17:43 +0200277 <util:list id="kustvakt_authproviders"
278 value-type="de.ids_mannheim.korap.interfaces.AuthenticationIface">
279 <ref bean="basic_auth" />
280 <ref bean="session_auth" />
margarethacf306d32018-05-30 19:45:35 +0200281 <ref bean="oauth2_auth" />
margaretha62055f72017-04-11 19:17:43 +0200282 </util:list>
Michael Hanlbd852b82015-11-18 22:17:00 +0100283
margaretha62055f72017-04-11 19:17:43 +0200284 <!-- specify type for constructor argument -->
margaretha34954472018-10-24 20:05:17 +0200285 <bean id="authenticationManager"
margaretha139d0f72017-11-14 18:56:22 +0100286 class="de.ids_mannheim.korap.authentication.KustvaktAuthenticationManager">
margaretha35e1ca22023-11-16 22:00:01 +0100287 <constructor-arg
288 type="de.ids_mannheim.korap.interfaces.EncryptionIface"
margaretha62055f72017-04-11 19:17:43 +0200289 ref="kustvakt_encryption" />
290 <constructor-arg ref="kustvakt_config" />
margaretha62055f72017-04-11 19:17:43 +0200291 <!-- inject authentication providers to use -->
292 <property name="providers" ref="kustvakt_authproviders" />
293 </bean>
Michael Hanlbd852b82015-11-18 22:17:00 +0100294
margaretha62055f72017-04-11 19:17:43 +0200295 <!-- todo: if db interfaces not loaded via spring, does transaction even
296 work then? -->
297 <!-- the transactional advice (i.e. what 'happens'; see the <aop:advisor/>
298 bean below) -->
299 <tx:advice id="txAdvice" transaction-manager="txManager">
300 <!-- the transactional semantics... -->
301 <tx:attributes>
302 <!-- all methods starting with 'get' are read-only -->
margaretha35e1ca22023-11-16 22:00:01 +0100303 <tx:method name="get*" read-only="true"
304 rollback-for="KorAPException" />
margaretha62055f72017-04-11 19:17:43 +0200305 <!-- other methods use the default transaction settings (see below) -->
306 <tx:method name="*" rollback-for="KorAPException" />
307 </tx:attributes>
308 </tx:advice>
Michael Hanlbd852b82015-11-18 22:17:00 +0100309
margaretha62055f72017-04-11 19:17:43 +0200310 <!-- ensure that the above transactional advice runs for any execution of
311 an operation defined by the service interface -->
312 <aop:config>
313 <aop:pointcut id="service"
314 expression="execution(* de.ids_mannheim.korap.interfaces.db.*.*(..))" />
315 <aop:advisor advice-ref="txAdvice" pointcut-ref="service" />
316 </aop:config>
Michael Hanlbd852b82015-11-18 22:17:00 +0100317
margaretha62055f72017-04-11 19:17:43 +0200318 <!-- similarly, don't forget the PlatformTransactionManager -->
319 <bean id="txManager"
320 class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
321 <property name="dataSource" ref="dataSource" />
322 </bean>
margaretha58e18632018-02-15 13:04:42 +0100323
324 <!-- mail -->
margaretha35e1ca22023-11-16 22:00:01 +0100325 <bean id="authenticator"
326 class="de.ids_mannheim.korap.service.MailAuthenticator">
margarethafb027f92018-04-23 20:00:13 +0200327 <constructor-arg index="0" value="${mail.username}" />
328 <constructor-arg index="1" value="${mail.password}" />
margarethaaecee1b2018-02-20 14:44:21 +0100329 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100330 <bean id="smtpSession" class="jakarta.mail.Session"
331 factory-method="getInstance">
margarethaaecee1b2018-02-20 14:44:21 +0100332 <constructor-arg index="0">
333 <props>
334 <prop key="mail.smtp.submitter">${mail.username}</prop>
335 <prop key="mail.smtp.auth">${mail.auth}</prop>
336 <prop key="mail.smtp.host">${mail.host}</prop>
337 <prop key="mail.smtp.port">${mail.port}</prop>
338 <prop key="mail.smtp.starttls.enable">${mail.starttls.enable}</prop>
339 <prop key="mail.smtp.connectiontimeout">${mail.connectiontimeout}</prop>
340 </props>
341 </constructor-arg>
margarethafb027f92018-04-23 20:00:13 +0200342 <constructor-arg index="1" ref="authenticator" />
margaretha58e18632018-02-15 13:04:42 +0100343 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100344 <bean id="mailSender"
345 class="org.springframework.mail.javamail.JavaMailSenderImpl">
margaretha58e18632018-02-15 13:04:42 +0100346 <property name="session" ref="smtpSession" />
347 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100348 <bean id="velocityEngine"
349 class="org.apache.velocity.app.VelocityEngine">
margaretha58e18632018-02-15 13:04:42 +0100350 <constructor-arg index="0">
351 <props>
352 <prop key="resource.loader">class</prop>
353 <prop key="class.resource.loader.class">org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
354 </prop>
355 </props>
356 </constructor-arg>
margarethaaecee1b2018-02-20 14:44:21 +0100357 </bean>
Akronbee031a2020-10-29 16:58:14 +0100358</beans>