I have a very开发者_如何学运维 large java project, and I was wondering how to quickly determine the "entry point" to this project. Where, when I run it, is first executed.
As was commented, we need to know what kind of project. A standalone app will have a main method somewhere, but there are all kinds of different java apps that don't have an explicit one, or for that matter a single entry point.
A project could have several servlets, for example, which all will be started but none is THE entry point, they all are entry points to specific functionality.
Many UI projects will also present a series of components to the user, all started by some underlying framework. Again, there is no entry point, per se, as the main() is actually embedded within the underlying framework.
精彩评论