[{"data":1,"prerenderedAt":63},["ShallowReactive",2],{"content:\u002Fposts\u002F2024\u002Fnest-ioc-di":3,"surround:\u002Fposts\u002F2024\u002Fnest-ioc-di":52},{"id":4,"title":5,"body":6,"canonical":32,"categories":33,"date":35,"description":32,"draft":36,"extension":37,"image":38,"meta":39,"navigation":40,"path":41,"permalink":32,"readingTime":42,"recommend":32,"references":32,"seo":47,"sitemap":48,"stem":49,"tags":50,"type":32,"updated":35,"__hash__":51},"content\u002Fposts\u002F2024\u002Fnest-ioc-di.md","控制反转和依赖注入",{"type":7,"value":8,"toc":25},"minimark",[9,14,18,22],[10,11,13],"h2",{"id":12},"控制反转-ioc","控制反转 IoC",[15,16,17],"p",{},"IoC（inversion of Control）即控制反转，是一种设计思想。IoC 意味着将你设计好的对象交给容器控制，而不是传统的在对象内部中直接控制。",[10,19,21],{"id":20},"依赖注入-di","依赖注入 DI",[15,23,24],{},"DI（Dependency Injection）即依赖注入",{"title":26,"searchDepth":27,"depth":27,"links":28},"",4,[29,31],{"id":12,"depth":30,"text":13},2,{"id":20,"depth":30,"text":21},null,[34],"代码","2024-01-21 16:35:14",false,"md","https:\u002F\u002Fbitmc.uno\u002Fpicgo\u002F67a18b1813aba-78.webp",{},true,"\u002Fposts\u002F2024\u002Fnest-ioc-di",{"text":43,"minutes":44,"time":45,"words":46},"1 min read",0.32,19200,64,{"title":5,"description":32},{"loc":41},"posts\u002F2024\u002Fnest-ioc-di",[],"O2LLYY6SxgYVyppP6BI_rahJ3zleptiLLUt5W_hN8ic",[53,58],{"title":54,"path":55,"stem":56,"date":57,"type":32,"children":-1},"RESTful 风格设计","\u002Fposts\u002F2024\u002Fnest-restful-api-design","posts\u002F2024\u002Fnest-restful-api-design","2024-01-20 22:56:21",{"title":59,"path":60,"stem":61,"date":62,"type":32,"children":-1},"RBAC权限控制简述","\u002Fposts\u002F2024\u002Fnest-rbac-permission-control","posts\u002F2024\u002Fnest-rbac-permission-control","2024-02-04 21:47:35",1789642592948]