blob: d1dd61c41dcf1ff84c7835711e2943776ddfcfb9 [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
margaretha514e1412017-10-10 15:54:20 +020069 <!-- use SingleConnection only for testing! -->
margaretha6c2a20f2017-07-24 15:33:01 +020070 <bean id="sqliteDataSource"
margaretha62055f72017-04-11 19:17:43 +020071 class="org.springframework.jdbc.datasource.SingleConnectionDataSource"
margaretha318fec32017-10-24 12:11:58 +020072 lazy-init="true">
margaretha514e1412017-10-10 15:54:20 +020073 <!-- <property name="driverClassName" value="${jdbc.driverClassName}" /> -->
margaretha6c2a20f2017-07-24 15:33:01 +020074 <property name="url" value="${jdbc.url}" />
75 <property name="username" value="${jdbc.username}" />
76 <property name="password" value="${jdbc.password}" />
margarethae6c711b2018-02-06 21:55:04 +010077 <property name="connectionProperties">
margaretha58e18632018-02-15 13:04:42 +010078 <props>
79 <prop key="date_string_format">yyyy-MM-dd HH:mm:ss</prop>
80 </props>
81 </property>
82
margaretha514e1412017-10-10 15:54:20 +020083 <!-- Sqlite can only have a single connection -->
margaretha62055f72017-04-11 19:17:43 +020084 <property name="suppressClose">
85 <value>true</value>
86 </property>
margaretha514e1412017-10-10 15:54:20 +020087 </bean>
margaretha58e18632018-02-15 13:04:42 +010088
margaretha35e1ca22023-11-16 22:00:01 +010089 <bean id="c3p0DataSource"
90 class="com.mchange.v2.c3p0.ComboPooledDataSource"
margaretha58e18632018-02-15 13:04:42 +010091 destroy-method="close">
92 <property name="driverClass" value="${jdbc.driverClassName}" />
margaretha514e1412017-10-10 15:54:20 +020093 <property name="jdbcUrl" value="${jdbc.url}" />
94 <property name="user" value="${jdbc.username}" />
95 <property name="password" value="${jdbc.password}" />
margaretha58e18632018-02-15 13:04:42 +010096 <property name="maxPoolSize" value="4" />
97 <property name="minPoolSize" value="1" />
98 <property name="maxStatements" value="1" />
99 <property name="testConnectionOnCheckout" value="true" />
margaretha62055f72017-04-11 19:17:43 +0200100 </bean>
Michael Hanlbd852b82015-11-18 22:17:00 +0100101
margaretha62055f72017-04-11 19:17:43 +0200102 <!-- to configure database for sqlite, mysql, etc. migrations -->
margaretha35e1ca22023-11-16 22:00:01 +0100103 <bean id="flywayConfig"
104 class="org.flywaydb.core.api.configuration.ClassicConfiguration">
margarethaf6d5a822017-10-19 19:51:20 +0200105 <!-- drop existing tables and create new tables -->
106 <property name="validateOnMigrate" value="true" />
107 <property name="cleanOnValidationError" value="true" />
margaretha514e1412017-10-10 15:54:20 +0200108 <property name="baselineOnMigrate" value="false" />
margaretha35e1ca22023-11-16 22:00:01 +0100109 <property name="locations"
110 value="#{'${jdbc.schemaPath}'.split(',')}" />
margaretha8fe51e92023-09-20 11:22:20 +0200111 <!-- <property name="dataSource" ref="sqliteDataSource" /> -->
112 <property name="dataSource" ref="dataSource" />
margarethad66a6832022-03-03 08:47:13 +0100113 <property name="outOfOrder" value="true" />
margaretha62055f72017-04-11 19:17:43 +0200114 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100115
116 <bean id="flyway" class="org.flywaydb.core.Flyway"
117 init-method="migrate">
118 <constructor-arg ref="flywayConfig" />
margarethafcf8bd92021-01-14 10:55:53 +0100119 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100120
Michael Hanlbd852b82015-11-18 22:17:00 +0100121
margarethaade7d4a2017-07-20 19:53:35 +0200122 <bean id="entityManagerFactory"
123 class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
margaretha8fe51e92023-09-20 11:22:20 +0200124 <property name="dataSource" ref="dataSource" />
125 <!-- <property name="dataSource" ref="sqliteDataSource" /> -->
margarethaa452c5e2018-04-25 22:48:09 +0200126 <property name="packagesToScan">
127 <array>
margaretha5b708792023-05-12 16:55:29 +0200128 <value>de.ids_mannheim.korap.core.entity</value>
margarethaa452c5e2018-04-25 22:48:09 +0200129 <value>de.ids_mannheim.korap.entity</value>
130 <value>de.ids_mannheim.korap.oauth2.entity</value>
131 </array>
132 </property>
margarethaade7d4a2017-07-20 19:53:35 +0200133 <property name="jpaVendorAdapter">
134 <bean id="jpaVendorAdapter"
135 class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
margaretha35e1ca22023-11-16 22:00:01 +0100136 <property name="databasePlatform"
137 value="${hibernate.dialect}" />
margarethaade7d4a2017-07-20 19:53:35 +0200138 </bean>
139 </property>
140 <property name="jpaProperties">
141 <props>
142 <prop key="hibernate.dialect">${hibernate.dialect}</prop>
143 <prop key="hibernate.hbm2ddl.auto">${hibernate.hbm2ddl.auto}</prop>
144 <prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
145 <prop key="hibernate.cache.use_query_cache">${hibernate.cache.use_query_cache}</prop>
146 <prop key="hibernate.cache.use_second_level_cache">${hibernate.cache.use_second_level_cache}
147 </prop>
148 <prop key="hibernate.cache.provider_class">${hibernate.cache.provider}</prop>
149 <prop key="hibernate.cache.region.factory_class">${hibernate.cache.region.factory}</prop>
margaretha6ad08b42018-08-22 18:33:54 +0200150 <prop key="hibernate.jdbc.time_zone">${hibernate.jdbc.time_zone}</prop>
margarethaade7d4a2017-07-20 19:53:35 +0200151 <!-- <prop key="net.sf.ehcache.configurationResourceName">classpath:ehcache.xml</prop> -->
152 </props>
153 </property>
margaretha62055f72017-04-11 19:17:43 +0200154 </bean>
Michael Hanle4fc7752016-02-17 11:41:18 +0100155
margarethaade7d4a2017-07-20 19:53:35 +0200156 <tx:annotation-driven proxy-target-class="true"
157 transaction-manager="transactionManager" />
margaretha35e1ca22023-11-16 22:00:01 +0100158 <bean id="transactionManager"
159 class="org.springframework.orm.jpa.JpaTransactionManager">
160 <property name="entityManagerFactory"
161 ref="entityManagerFactory" />
margaretha62055f72017-04-11 19:17:43 +0200162 </bean>
Michael Hanle4fc7752016-02-17 11:41:18 +0100163
margarethaade7d4a2017-07-20 19:53:35 +0200164 <bean id="transactionTemplate"
165 class="org.springframework.transaction.support.TransactionTemplate">
166 <constructor-arg ref="transactionManager" />
167 </bean>
168
169 <!-- Data access objects -->
margaretha34954472018-10-24 20:05:17 +0200170 <bean id="adminDao" class="de.ids_mannheim.korap.dao.AdminDaoImpl" />
margaretha35e1ca22023-11-16 22:00:01 +0100171 <bean id="resourceDao"
172 class="de.ids_mannheim.korap.dao.ResourceDao" />
173 <bean id="accessScopeDao"
174 class="de.ids_mannheim.korap.oauth2.dao.AccessScopeDao" />
175 <bean id="authorizationDao"
176 class="de.ids_mannheim.korap.oauth2.dao.CachedAuthorizationDaoImpl" />
177
margaretha34954472018-10-24 20:05:17 +0200178 <!-- Services -->
margaretha35e1ca22023-11-16 22:00:01 +0100179 <bean id="scopeService"
180 class="de.ids_mannheim.korap.oauth2.service.OAuth2ScopeServiceImpl" />
181
margarethab4ce6602018-04-26 20:23:57 +0200182 <!-- props are injected from default-config.xml -->
margaretha35e1ca22023-11-16 22:00:01 +0100183 <bean id="kustvakt_config"
184 class="de.ids_mannheim.korap.config.FullConfiguration">
margarethab4ce6602018-04-26 20:23:57 +0200185 <constructor-arg name="properties" ref="props" />
186 </bean>
187
margaretha35e1ca22023-11-16 22:00:01 +0100188 <bean id="initializator"
189 class="de.ids_mannheim.korap.init.Initializator"
margaretha1b320452018-08-02 16:56:25 +0200190 init-method="initTest">
margarethab4ce6602018-04-26 20:23:57 +0200191 </bean>
192
margaretha6c2a20f2017-07-24 15:33:01 +0200193 <!-- Krill -->
margaretha35e1ca22023-11-16 22:00:01 +0100194 <bean id="search_krill"
195 class="de.ids_mannheim.korap.web.SearchKrill">
margaretha58e18632018-02-15 13:04:42 +0100196 <constructor-arg value="${krill.indexDir}" />
margaretha6c2a20f2017-07-24 15:33:01 +0200197 </bean>
198
margaretha6cd27f32019-01-24 14:47:47 +0100199 <!-- Validator -->
margaretha35e1ca22023-11-16 22:00:01 +0100200 <bean id="validator"
201 class="de.ids_mannheim.korap.validator.ApacheValidator" />
202
margaretha31a9f522018-04-03 20:40:45 +0200203 <!-- URLValidator -->
margaretha35e1ca22023-11-16 22:00:01 +0100204 <bean id="redirectURIValidator"
205 class="org.apache.commons.validator.routines.UrlValidator">
margarethae4034a82018-07-02 14:46:59 +0200206 <constructor-arg value="http,https" index="0" />
margaretha35e1ca22023-11-16 22:00:01 +0100207 <constructor-arg index="1" type="long"
208 value="#{T(org.apache.commons.validator.routines.UrlValidator).ALLOW_LOCAL_URLS +
209 T(org.apache.commons.validator.routines.UrlValidator).NO_FRAGMENTS}" />
margaretha31a9f522018-04-03 20:40:45 +0200210 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100211 <bean id="urlValidator"
212 class="org.apache.commons.validator.routines.UrlValidator">
margarethad7cab212018-07-02 19:01:43 +0200213 <constructor-arg value="http,https" />
214 </bean>
margaretha56e8e552017-12-05 16:31:21 +0100215
margaretha4fa4b062019-01-28 19:43:30 +0100216 <!-- Rewrite -->
margaretha35e1ca22023-11-16 22:00:01 +0100217 <bean id="foundryRewrite"
218 class="de.ids_mannheim.korap.rewrite.FoundryRewrite" />
219 <bean id="collectionRewrite"
220 class="de.ids_mannheim.korap.rewrite.CollectionRewrite" />
221 <bean id="collectionCleanRewrite"
222 class="de.ids_mannheim.korap.rewrite.CollectionCleanRewrite" />
223 <bean id="virtualCorpusRewrite"
224 class="de.ids_mannheim.korap.rewrite.VirtualCorpusRewrite" />
225 <bean id="collectionConstraint"
226 class="de.ids_mannheim.korap.rewrite.CollectionConstraint" />
227 <bean id="queryReferenceRewrite"
228 class="de.ids_mannheim.korap.rewrite.QueryReferenceRewrite" />
229
margaretha4fa4b062019-01-28 19:43:30 +0100230 <util:list id="rewriteTasks"
231 value-type="de.ids_mannheim.korap.rewrite.RewriteTask">
margaretha35e1ca22023-11-16 22:00:01 +0100232 <!-- <ref bean="collectionConstraint" /> <ref bean="collectionCleanRewrite"
233 /> -->
margaretha4fa4b062019-01-28 19:43:30 +0100234 <ref bean="foundryRewrite" />
235 <ref bean="collectionRewrite" />
236 <ref bean="virtualCorpusRewrite" />
Akronbee031a2020-10-29 16:58:14 +0100237 <ref bean="queryReferenceRewrite" />
margaretha4fa4b062019-01-28 19:43:30 +0100238 </util:list>
margaretha35e1ca22023-11-16 22:00:01 +0100239
240 <bean id="rewriteHandler"
241 class="de.ids_mannheim.korap.rewrite.RewriteHandler">
242 <constructor-arg ref="rewriteTasks" />
margaretha56e8e552017-12-05 16:31:21 +0100243 </bean>
244
margaretha35e1ca22023-11-16 22:00:01 +0100245 <bean id="kustvaktResponseHandler"
246 class="de.ids_mannheim.korap.web.KustvaktResponseHandler">
margaretha05122312018-04-16 15:01:34 +0200247 </bean>
margarethafb027f92018-04-23 20:00:13 +0200248
249 <!-- OAuth -->
margaretha35e1ca22023-11-16 22:00:01 +0100250 <bean id="oauth2ResponseHandler"
251 class="de.ids_mannheim.korap.web.OAuth2ResponseHandler">
margaretha58e18632018-02-15 13:04:42 +0100252 </bean>
Michael Hanlbd852b82015-11-18 22:17:00 +0100253
margaretha35e1ca22023-11-16 22:00:01 +0100254 <bean name="kustvakt_encryption"
255 class="de.ids_mannheim.korap.encryption.KustvaktEncryption">
margaretha62055f72017-04-11 19:17:43 +0200256 <constructor-arg ref="kustvakt_config" />
257 </bean>
Michael Hanlbd852b82015-11-18 22:17:00 +0100258
margaretha62055f72017-04-11 19:17:43 +0200259 <!-- authentication providers to use -->
margaretha58e18632018-02-15 13:04:42 +0100260 <bean id="basic_auth"
261 class="de.ids_mannheim.korap.authentication.BasicAuthentication" />
Michael Hanlbd852b82015-11-18 22:17:00 +0100262
263
margaretha62055f72017-04-11 19:17:43 +0200264 <bean id="session_auth"
margaretha139d0f72017-11-14 18:56:22 +0100265 class="de.ids_mannheim.korap.authentication.SessionAuthentication">
margaretha35e1ca22023-11-16 22:00:01 +0100266 <constructor-arg
267 type="de.ids_mannheim.korap.config.KustvaktConfiguration"
margaretha62055f72017-04-11 19:17:43 +0200268 ref="kustvakt_config" />
margaretha35e1ca22023-11-16 22:00:01 +0100269 <constructor-arg
270 type="de.ids_mannheim.korap.interfaces.EncryptionIface"
margaretha62055f72017-04-11 19:17:43 +0200271 ref="kustvakt_encryption" />
272 </bean>
margarethae4034a82018-07-02 14:46:59 +0200273
margarethacf306d32018-05-30 19:45:35 +0200274 <bean id="oauth2_auth"
275 class="de.ids_mannheim.korap.authentication.OAuth2Authentication" />
margarethae4034a82018-07-02 14:46:59 +0200276
Michael Hanlbd852b82015-11-18 22:17:00 +0100277
margaretha62055f72017-04-11 19:17:43 +0200278 <util:list id="kustvakt_authproviders"
279 value-type="de.ids_mannheim.korap.interfaces.AuthenticationIface">
280 <ref bean="basic_auth" />
281 <ref bean="session_auth" />
margarethacf306d32018-05-30 19:45:35 +0200282 <ref bean="oauth2_auth" />
margaretha62055f72017-04-11 19:17:43 +0200283 </util:list>
Michael Hanlbd852b82015-11-18 22:17:00 +0100284
margaretha62055f72017-04-11 19:17:43 +0200285 <!-- specify type for constructor argument -->
margaretha34954472018-10-24 20:05:17 +0200286 <bean id="authenticationManager"
margaretha139d0f72017-11-14 18:56:22 +0100287 class="de.ids_mannheim.korap.authentication.KustvaktAuthenticationManager">
margaretha35e1ca22023-11-16 22:00:01 +0100288 <constructor-arg
289 type="de.ids_mannheim.korap.interfaces.EncryptionIface"
margaretha62055f72017-04-11 19:17:43 +0200290 ref="kustvakt_encryption" />
291 <constructor-arg ref="kustvakt_config" />
margaretha62055f72017-04-11 19:17:43 +0200292 <!-- inject authentication providers to use -->
293 <property name="providers" ref="kustvakt_authproviders" />
294 </bean>
Michael Hanlbd852b82015-11-18 22:17:00 +0100295
margaretha62055f72017-04-11 19:17:43 +0200296 <!-- todo: if db interfaces not loaded via spring, does transaction even
297 work then? -->
298 <!-- the transactional advice (i.e. what 'happens'; see the <aop:advisor/>
299 bean below) -->
300 <tx:advice id="txAdvice" transaction-manager="txManager">
301 <!-- the transactional semantics... -->
302 <tx:attributes>
303 <!-- all methods starting with 'get' are read-only -->
margaretha35e1ca22023-11-16 22:00:01 +0100304 <tx:method name="get*" read-only="true"
305 rollback-for="KorAPException" />
margaretha62055f72017-04-11 19:17:43 +0200306 <!-- other methods use the default transaction settings (see below) -->
307 <tx:method name="*" rollback-for="KorAPException" />
308 </tx:attributes>
309 </tx:advice>
Michael Hanlbd852b82015-11-18 22:17:00 +0100310
margaretha62055f72017-04-11 19:17:43 +0200311 <!-- ensure that the above transactional advice runs for any execution of
312 an operation defined by the service interface -->
313 <aop:config>
314 <aop:pointcut id="service"
315 expression="execution(* de.ids_mannheim.korap.interfaces.db.*.*(..))" />
316 <aop:advisor advice-ref="txAdvice" pointcut-ref="service" />
317 </aop:config>
Michael Hanlbd852b82015-11-18 22:17:00 +0100318
margaretha62055f72017-04-11 19:17:43 +0200319 <!-- similarly, don't forget the PlatformTransactionManager -->
320 <bean id="txManager"
321 class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
322 <property name="dataSource" ref="dataSource" />
323 </bean>
margaretha58e18632018-02-15 13:04:42 +0100324
325 <!-- mail -->
margaretha35e1ca22023-11-16 22:00:01 +0100326 <bean id="authenticator"
327 class="de.ids_mannheim.korap.service.MailAuthenticator">
margarethafb027f92018-04-23 20:00:13 +0200328 <constructor-arg index="0" value="${mail.username}" />
329 <constructor-arg index="1" value="${mail.password}" />
margarethaaecee1b2018-02-20 14:44:21 +0100330 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100331 <bean id="smtpSession" class="jakarta.mail.Session"
332 factory-method="getInstance">
margarethaaecee1b2018-02-20 14:44:21 +0100333 <constructor-arg index="0">
334 <props>
335 <prop key="mail.smtp.submitter">${mail.username}</prop>
336 <prop key="mail.smtp.auth">${mail.auth}</prop>
337 <prop key="mail.smtp.host">${mail.host}</prop>
338 <prop key="mail.smtp.port">${mail.port}</prop>
339 <prop key="mail.smtp.starttls.enable">${mail.starttls.enable}</prop>
340 <prop key="mail.smtp.connectiontimeout">${mail.connectiontimeout}</prop>
341 </props>
342 </constructor-arg>
margarethafb027f92018-04-23 20:00:13 +0200343 <constructor-arg index="1" ref="authenticator" />
margaretha58e18632018-02-15 13:04:42 +0100344 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100345 <bean id="mailSender"
346 class="org.springframework.mail.javamail.JavaMailSenderImpl">
margaretha58e18632018-02-15 13:04:42 +0100347 <property name="session" ref="smtpSession" />
348 </bean>
margaretha35e1ca22023-11-16 22:00:01 +0100349 <bean id="velocityEngine"
350 class="org.apache.velocity.app.VelocityEngine">
margaretha58e18632018-02-15 13:04:42 +0100351 <constructor-arg index="0">
352 <props>
353 <prop key="resource.loader">class</prop>
354 <prop key="class.resource.loader.class">org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
355 </prop>
356 </props>
357 </constructor-arg>
margarethaaecee1b2018-02-20 14:44:21 +0100358 </bean>
Akronbee031a2020-10-29 16:58:14 +0100359</beans>