< ?xml version=' 1.0' encoding=' utf-8'?> 后面加上一条就可以了 Xml代码 < /tomcat-users> 后加的是意思是设置admin和manager的用户名和密码为admin