0

我在 Struts 配置数据源块中使用未加密的数据库密码,但出于安全考虑,我想在那里使用加密密码。我不确定在加载应用程序并检查数据库连接时它会如何工作。我也在使用 Apache Commons DBCP。

无论如何,是否可以从 struts 配置中自动解密数据库密码?我正在使用struts 1。

<data-source type="org.apache.commons.dbcp.BasicDataSource">
<set-property property="username" value="userid"/>
<set-property property="password" value="encryptedpassword"/>
4

0 回答 0