首页新闻找找看学习计划

Tomcat的User信息可以存储到数据库中吗?

0
[待解决问题]
<tomcat-users xmlns="http://tomcat.apache.org/xml"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
              version="1.0">
<!--
  NOTE:  By default, no user is included in the "manager-gui" role required
  to operate the "/manager/html" web application.  If you wish to use this app,
  you must define such a user - the username and password are arbitrary. It is
  strongly recommended that you do NOT use one of the users in the commented out
  section below since they are intended for use with the examples web
  application.
-->
<!--
  NOTE:  The sample user and role entries below are intended for use with the
  examples web application. They are wrapped in a comment and thus are ignored
  when reading this file. If you wish to configure these users for use with the
  examples web application, do not forget to remove the <!.. ..> that surrounds
  them. You will also need to set the passwords to something appropriate.
-->
<!--
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="tomcat" password="<must-be-changed>" roles="tomcat"/>
  <user username="both" password="<must-be-changed>" roles="tomcat,role1"/>
  <user username="role1" password="<must-be-changed>" roles="role1"/>
-->
</tomcat-users>

例如这个信息,可以把用户名密码放到数据库中吗?

这种明文密码未免有点太不安全了吧

弗朗西斯的主页 弗朗西斯 | 菜鸟二级 | 园豆:495
提问于:2019-09-30 10:14
< >
分享
所有回答(1)
0

从来没考虑过这种事情,这就像是把钱放在桌子上还是桌子底下一样,没什么区别,毕竟能拿桌子上的钱的人自然也能手伸到桌子底下拿

轻红 | 园豆:208 (菜鸟二级) | 2019-09-30 11:29
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册