Using encoded password for the datasource used in spring applicationContext.xml

后端 未结 5 1002
野性不改
野性不改 2021-01-31 18:53

I want to keep encoded password in my below mentioned springApplicationContext.xml

Is there any way to achieve this?

presently I have configured all properties

5条回答
  •  一整个雨季
    2021-01-31 19:24

    If you are using tomcat connection pool as data source, here is an implementation

    http://www.jdev.it/encrypting-passwords-in-tomcat/

    Create a class which extends org.apache.tomcat.jdbc.pool.DataSourceFactory and configure it in the server.xml

提交回复
热议问题