fastify-awilix 基于awilix 的fastify 依赖注入扩展

依赖注入是一个很不错的开发模式,可以帮助我们开发灵活的业务服务,fastify-awilix 是基于awilix 实现的一个fastify
扩展

说明

目前nodejs 的ioc 框架也是很多的,fastify-awilix 属于官方提供的一个扩展,还是挺不错的,值得试用下

参考资料

https://github.com/fastify/fastify-awilix
https://github.com/jeffijoe/awilix
https://github.com/inversify/InversifyJS
https://github.com/typestack/typedi

posted on 2023-10-17 13:46  荣锋亮  阅读(32)  评论(0编辑  收藏  举报

导航