在spring上下文xml中,执行以下操作:
<context:component-scan base-package="com.startup.failure" scoped-proxy="interfaces" />
请注意,尽管如此,你将需要为该包中的所有类编写接口。

在spring上下文xml中,执行以下操作:
<context:component-scan base-package="com.startup.failure" scoped-proxy="interfaces" />
请注意,尽管如此,你将需要为该包中的所有类编写接口。