我有一个非常大的java项目,我想知道如何快速确定这个项目的“切入点”。 在我运行它时,首先执行。
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.
最满意答案
正如评论所说,我们需要知道什么样的项目。 一个独立的应用程序将在某处具有主方法,但是有各种不同的Java应用程序没有明确的应用程序,或者就此而言是单个入口点。
例如,一个项目可以有几个servlet,它们都将启动,但没有一个是入口点,它们都是特定功能的入口点。
许多UI项目还将向用户呈现一系列组件,所有组件都由一些底层框架启动。 同样,由于main()实际嵌入在底层框架中,因此本身没有入口点。
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.
更多推荐
发布评论