【发布时间】:2020-05-04 14:16:23
【问题描述】:
Dagger2 有子组件https://medium.com/tompee/dagger-2-scopes-and-subcomponents-d54d58511781 用于使用生命周期比主应用程序更短的 DI,例如,如果您有一个作业服务,那么该服务将为每个作业提供一个带有子组件的组件。
Spring 的 DI 框架的等价物是什么?
【问题讨论】:
标签: java spring spring-boot dependency-injection dagger-2