如何评价nest.js?

Views :
Update time : 2025-06-21 17:45:11

反对 @RaySong 的回答。

从 Decorater 不能作用于 function 开始, Nest 就注定是失败的.这个前提就是不准确的。

NestJS 的核心是基于 面向对象和依赖注入的,用类来定义Module、Controller、Service、Guard、Pipe之类的组件。

decorator 在 NestJS 中的作用主要在:告诉框架这个类/方法/属性是什么角色。

(@Controller(),@Injectable(),@Get() )依赖注入。

用的多的包括 @Inject() ,或者构造函数参数类型提示。

@UseGuards(),@UsePi…。

如何评价nest.js?
Related News
Read More >>
Blog Post With Youtube Video 为什么macOS软件生态不敌Windows?
2025-06-24 00:55:10
为什么macOS软件生态不敌Windows?...
Blog Post With Youtube Video ant-design-vue 社区为什么不维护了?
2025-06-24 00:55:10
ant-design-vue 社区为什么不维护了?...
Blog Post With Youtube Video 如何评价高圆圆的身材算是美女类型的吗?
2025-06-24 01:00:11
如何评价高圆圆的身材算是美女类型的吗?...
Blog Post With Youtube Video 为什么年轻的肉体让人沉迷?
2025-06-23 23:55:11
为什么年轻的肉体让人沉迷?...

Leave Your Message