Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个 Maven web 项目,它是在 tomcat7 上运行的。当我手动启动 tomcat 服务器并执行命令mvn clean install时,mvn tomcat7:deploy一切顺利,应用程序已部署并且我可以访问它。但是如果我不手动运行 tomcat 并尝试执行mvn tomcat7:run,则 tomcat 服务器将无法启动。它在启动时冻结ProtocolHandler。
mvn clean install
mvn tomcat7:deploy
mvn tomcat7:run
ProtocolHandler