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.
我在eclipse中开发了代码,只将.class文件复制到tomcat的WEB-INF/Class/PackageName/文件夹中,并在web.xml中正确设置后从浏览器运行代码。
WEB-INF/Class/PackageName/
现在我想查看在 Eclipse 中可以看到的已执行文件的输出。执行后如何查看 .class 文件的输出?
如果您使用 startup.sh/bat 脚本运行它,它应该将所有System.out输出记录到logs/catalina.out.
System.out
logs/catalina.out