[英]Java Servlet DB username and password store location
I'm totally beginner in servlets. 我是servlet的初学者。
I know I can set init params in web.xml
. 我知道我可以在web.xml
设置init params。
My question is : 我的问题是:
Is it good to store DB user and DB password in web.xml
for the ease of configuration? 为了便于配置,在web.xml
存储数据库用户和数据库密码是否合适?
OR 要么
Shall I store them Hard-coded
for security wise? 我应该存储Hard-coded
以保证安全吗?
In other words is web.xml
visible to end user? 换句话说,最终用户可以看到web.xml
吗?
Is it good to store db user and pass in web.xml for the ease of configuration? 是否可以存储db用户并传入web.xml以便于配置?
shall I store them in code for security wise? 为了安全起见,我应该将它们存储在代码中?
In other words is web.xml visible to end user? 换句话说,最终用户可以看到web.xml吗?
Hope, you understand it now! 希望,你现在明白了!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.