首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

JNDI Tomcat数据源配备中密码加密

2012-10-27 
JNDI Tomcat数据源配置中密码加密项目环境:Tomcat5JNDI配置:Context Resource name jdbc/testtype

JNDI Tomcat数据源配置中密码加密
项目环境:Tomcat5
JNDI配置:
<Context>
<Resource
name = "jdbc/test"
type ="javax.sql.DataSource"
driverClassName="net.sourceforge.jtds.jdbc.Driver"
maxIDle="200"
maxWait="5000"
username="sa"
password="sa"
url="jdbc:jtds:sqlserver://localhost:1433/test"
maxActive="400"/>
</Context>
在这段配置中的密码是明文表示的。

我能不能对该域进行加密处理呢,要怎么做,甚至是采用自己的加密算法呢?
type ="javax.sql.DataSource"
driverClassName="net.sourceforge.jtds.jdbc.Driver"
maxIDle="200"
maxWait="5000"
username="sa"
password="sa"
url="jdbc:jtds:sqlserver://localhost:1433/test"
maxActive="400"/>
</Context>
在这段配置中的密码是明文表示的。

我能不能对该域进行加密处理呢,要怎么做,甚至是采用自己的加密算法呢?

没有人遇过这个问题吗.自己顶.

热点排行