我在build.properties中设置的: # Ant properties for building the springapp appserver.home=E:\Tomcat deploy.path=${appserver.home}/webapps tomcat.manager.url=http://localhost:8080/manager/html tomcat.manager.username=admin tomcat.manager.password=manager 手工在浏览器中输入http://localhost:8080/manager/html ,然后输入用户名和密码,一切正常
<list url="${tomcat.manager.url}" username="${tomcat.manager.username}" password="${tomcat.manager.password}"/>
照着文档作的,没有写错啊
问什么只是把html代码给列出来了?
如果正确的话,你手工在浏览器中输入tomcat.manager.url设置的地址,然后输入用户名和密码,看结果如何?
# Ant properties for building the springapp
appserver.home=E:\Tomcat
deploy.path=${appserver.home}/webapps
tomcat.manager.url=http://localhost:8080/manager/html
tomcat.manager.username=admin
tomcat.manager.password=manager
手工在浏览器中输入http://localhost:8080/manager/html
,然后输入用户名和密码,一切正常