采取Base64来完成暗码密文解密。
- 为ComboPooledDataSource设备名为properties的属性
- <property name="properties">
- <bean class="com.xxx.datasource.CustomDatasourcePropertiesFactory"
- factory-method="getProperties">
- <constructor-arg type="java.lang.String">
- <value>${jdbc.password}</value>
- </constructor-arg>
- </bean>
- </property>
完全示例如下:
- <!-- 设备数据源-C3PO -->
- <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"
- destroy-method="close">
- <property name="properties">
- <bean class="com.xxx.datasource.CustomDatasourcePropertiesFactory"
- factory-method="getProperties">
- <constructor-arg type="java.lang.String">
- <value>${jdbc.password}</value>
- </constructor-arg>
- </bean>
推荐阅读
开辟者大年夜赛路演 | 12月16日,技巧立异,北京不见不散 GAFA: What can we learn from their acquisition strategies?我们可以大年夜这些收购中发明更多的规律。显然,苹不雅想要在将来利>>>详细阅读
本文标题:MySQL连接配置文件密码加密及其在多种连接池上的应用
地址:http://www.17bianji.com/lsqh/39758.html
1/2 1

网友点评
精彩导读
科技快报
品牌展示