Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请解释以下语句: •<strong>如果您不控制类的实例化,方法注入可能很有用。如果你有一个需要一些依赖的超类,你也可以使用它。(构造函数注入使这变得困难。)
构造函数注入如何使这变得困难????谢谢