我正在尝试像在此示例中那样部署 WAR https://stackoverflow.com/a/4144674/758661
DeployTask task = new DeployTask();
  task.setUrl("http://localhost:8080/manager/text");
  task.setUsername("tomcat");
  task.setPassword("s3cret");
  task.setPath("/updater");
  task.setWar(warFile.getAbsolutePath());
  task.execute();
但是得到一个 403 错误:
Server returned HTTP response code: 403 for URL: 
http://localhost:8080/manager/text/deploy?path=%2Fupdater
我认为是因为“/”已被替换为“%2F”(密码和用户名就像在 tomcat-users.xml 中一样)
如何防止将“/”替换为“%2F”?还是有其他想法?谢谢。