Jasypt Users Forum

How can i Implement Encrypted password without using .proprties file in Spring with Hibernate

View: New views
1 Messages — Rating Filter:   Alert me  

How can i Implement Encrypted password without using .proprties file in Spring with Hibernate

by Java Software Engineer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

<bean id="dataSource"
                class="org.springframework.jdbc.datasource.DriverManagerDataSource">
                <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
                <property name="url" value="jdbc:oracle:thin:@localhost:1521:XE"/>
                <property name="username" value="system"/>
                <property name="password" value="${jdbc.password}"/>
        </bean>

i would like to use

<bean id="dataSource"
                class="org.springframework.jdbc.datasource.DriverManagerDataSource">
                <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
                <property name="url" value="jdbc:oracle:thin:@localhost:1521:XE"/>
                <property name="username" value="system"/>
                <property name="password" value="ENCRYPTPASSWORD"/>

        </bean>

IS their any way i can do this in Spring Application Context for Hibernate