applicationContext.xml 1.46 KB
<?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"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd">

    <bean id="standardPBEStringEncryptor" class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor">
        <property name="password"
                  value="${atms_password:9C7jLBQ62cDbVwIzP85DIlzdAm76DdMb}"/>
    </bean>

    <bean id="encryptablePropertyPlaceholderConfigurer"
          class="org.jasypt.spring31.properties.EncryptablePropertyPlaceholderConfigurer">
        <property name="ignoreUnresolvablePlaceholders" value="true"/>
        <constructor-arg ref="standardPBEStringEncryptor"/>
        <property name="locations">
            <list>
                <!-- Base settings for all environments -->
                <value>classpath:conf_base.properties</value>
                <!-- Settings for selected environment -->
                <value>classpath:conf.properties
                </value>
            </list>
        </property>
    </bean>

    <context:component-scan base-package="pwc.taxtech.atms.web"/>

    <!-- <tx:annotation-driven proxy-target-class="true" /> -->

</beans>