在这种情况下不需要输出错误消息,因为文件描述符 0 到 2 只是在攻击者试图去搅乱您的程序的时候才会被关闭。
There's no need to print error messages for this case since file descriptors 0 through 2 are only closed if an attacker is trying to subvert your program.
有一点不是很重要但却很有帮助,初始打开每个应用程序时,都具有三个文件描述符,从0到2,分别表示标准输入、输出和错误流。
As a bit of helpful trivia, each application is initially opened with three file descriptors, 0 through 2, for the standard input, output, and error streams, respectively.
您可以解决此问题,方法是手工将web部署描述符(web . xml)从web项目的web - INF文件夹复制到错误消息中给定的位置。
You can work around this issue by manually copying the web deployment descriptor (web.xml) from the WEB-INF folder of your web project to the location given in the error message.
应用推荐