[ExceptionHandler] Nest can't resolve dependencies of the UsersController (?). Pleasemake sure that the argument at index [0] is available in the UsersModule context. +0ms
Error: Nest can't resolve dependencies of the UsersController (?). Please make sure that the argument at index [0] is available in the UsersModule context.
构造函数注入依赖时用了接口声明,而不是类声明,导致nestjs无法获取依赖项。
解决办法,注入依赖时使用装饰器解构
@Inject('UsersService') private UsersService: User.Service