如何评价nest.js?

Views :
Update time : 2025-06-21 11:10:18

反对 @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 福特级航母的电磁弹射到底出了什么问题?
2025-06-21 09:50:17
福特级航母的电磁弹射到底出了什么问题?...
Blog Post With Youtube Video 2025年现在开发php项目选择lar***el框架好还是thinkphp框架好?
2025-06-21 10:15:18
2025年现在开发php项目选择lar***el框架好还是thinkphp框架好?...
Blog Post With Youtube Video Python+rust会是一个强大的组合吗?
2025-06-21 09:45:18
Python+rust会是一个强大的组合吗?...
Blog Post With Youtube Video 超小团队选择Django还是Flask?
2025-06-21 09:25:17
超小团队选择Django还是Flask?...

Leave Your Message