You could define the implementation class as a property, but that's still messing with fairly low-level coding issues.
您可以将实现类定义为属性,但是这样仍然存在非常低层的编码混合问题。
And it's through this automation that low-level source code details like coding standards, complexity, and duplication (to name a few) become the responsibility of a machine.
通过使用这种自动化,一些低级的源代码细节(如编码标准、复杂性和重复程度等)的处理成为了机器的职责。
Therefore, the application developer need only focus on coding the business logic without having to code the low-level services automatically handled by the container.
因此,应用程序开发者只需集中精力对业务逻辑进行编码而不必对底层服务编码,这些底层服务由容器自动处理。
应用推荐