Guest User

Untitled

a guest
Aug 21st, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. Spring application context encryption
  2. <bean id="securityDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
  3. <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
  4. <property name="url" value="jdbc:mysql://192.168.0.1/schemaname?useUnicode=true&characterEncoding=utf-8"/>
  5. <property name="username" value="{this should be encrypted}"/>
  6. <property name="password" value="{this should be encrypted}"/>
  7. </bean>
  8.  
  9. <Resource name="jdbc/[YourDatabaseName]"
  10. auth="Container"
  11. type="javax.sql.DataSource"
  12. username="[DatabaseUsername]"
  13. password="[DatabasePassword]"
  14. driverClassName="com.mysql.jdbc.Driver"
  15. url="jdbc:mysql://[yourserver]:3306/[yourapplication]"
  16. maxActive="15"
  17. maxIdle="3"/>
Add Comment
Please, Sign In to add comment