A typical enterprise application does not consist of a single object (or bean in the Spring parlance). Even the simplest application has a few objects that work together to present what the end-user sees as a coherent application. This next section explains how you go from defining a number of bean definitions that stand alone to a fully realized application where objects collaborate to achieve a goal.
典型的企业应用程序不只包括一个对象(或Spring
语法中的bean
)。 即使是最简单的应用程序也有一些对象,一起工作并最终呈现用户看到的一致性应用程序。 下一节将介绍如何从定义多个独立的bean定义到一个完全实现的应用程序,其中对象通过协作来实现一个目标。