MVC依赖注入
作者:互联网
#引用
“When you go and get things out of the refrigerator for yourself, you can cause problems. You might leave the door open, you might get something Mommy or Daddy doesn’t want you to have. You might even be looking for something we don’t even have or which has expired.
What you should be doing is stating a need, “I need something to drink with lunch,” and then we will make sure you have something when you sit down to eat.”
依赖注入的原则是面向接口编程。
标签:even,依赖,get,MVC,something,need,might,注入 来源: https://www.cnblogs.com/daniel-niu/p/10495301.html