【发布时间】:2015-01-14 08:38:29
【问题描述】:
我已将 Java 代码调试为 JAVA APPLICATION。(很简单)
现在我正在与 Maven 项目合作,我很想知道这个 MAVEN+SPRING-JERSEY 项目的全面流程。
我想调试可以帮助我解决这个问题,我爬了很多网站,但无法真正了解如何调试 Maven 项目。
谁能帮我解决这个幼稚的疑问。
或者你甚至可以从这个例子中解释我的流程。JERSEY+SPRING+MAVEN
对不起!我知道这可能是个愚蠢的问题,如果我应该删除它,请告诉我。
如果我是正确的,请告诉我:
我所了解的:
1.Request comes from client,Web.xml Handles this request.
It finds the REST class(with URIs) in given Package.
(Also in meantime,Spring registers all Beans with help of Bean Registry)
2.Then from Service It gets URI , Now request is sent to particular URI.
3.At that URI we have beans,(i.e business logic) which gets executed
4.Then this beans send back result to REST and REST send this response message to client.
这是我对@Michael Hoffman 回答的理解。
请告诉我这是否正确。
【问题讨论】:
-
逐行执行,我想知道谁和谁对话,代码是如何来回跳转的。
标签: eclipse spring maven debugging jersey