-
Notifications
You must be signed in to change notification settings - Fork 1
/
core-context-common.xml
50 lines (43 loc) · 2.44 KB
/
core-context-common.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"
default-autowire="byName">
<context:spring-configured />
<context:annotation-config />
<context:component-scan base-package="org.ligoj.bootstrap" />
<aop:aspectj-autoproxy />
<!-- Configuration for encryptor, based on environment variables, system properties or file -->
<bean id="environmentVariablesConfiguration" class="org.ligoj.bootstrap.core.crypto.SystemEnvironmentAndFilePBEConfig">
<property name="algorithm" value="PBEWithMD5AndDES" />
<property name="passwordEnvName" value="APP_CRYPTO_PASSWORD" />
<property name="passwordSysPropertyName" value="app.crypto.password" />
<property name="passwordFileEnvName" value="APP_CRYPTO_FILE" />
<property name="passwordFilePropertyName" value="app.crypto.file" />
</bean>
<bean id="configurationEncryptor" class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor">
<property name="config" ref="environmentVariablesConfiguration" />
</bean>
<bean class="org.ligoj.bootstrap.core.GlobalPropertyUtils">
<property name="locations">
<list>
<!-- This file is maintained by the system administrators -->
<value>classpath*:admin.confidential.properties</value>
<!-- This file is updated by the build system -->
<value>classpath:maven-buildinfo.properties</value>
<!-- Various common configurations -->
<value>classpath*:application${app-env:}.properties</value>
</list>
</property>
<property name="stringEncryptor" ref="configurationEncryptor" />
<property name="ignoreResourceNotFound" value="true" />
<property name="ignoreUnresolvablePlaceholders" value="true" />
<property name="fileEncoding" value="UTF-8" />
</bean>
<bean class="org.ligoj.bootstrap.core.SpringUtils" />
<bean class="org.ligoj.bootstrap.core.security.SecurityHelper" />
<bean class="org.ligoj.bootstrap.core.crypto.CryptoHelper" />
</beans>