개념

<aside> 🍎 @Module() 데코레이터 주석이 달린 클래스

</aside>

Untitled

역할

<aside> 🍎 Nest 가 어플리케이션 구조를 구성하는 데에 사용하는 메타데이터를 제공

</aside>

Root Module

속성

providers The providers that will be instantiated by the Nest injector and that may be shared at least across this module.
controllers The set of controllers defined in this module which have to be instantiated.
imports The list of imported modules that export the providers which are required in this module.
exports The subset of providers that are provided by this module and should be available in other modules which import this module. You can use either the provider itself or just its token (provide value).

Types of Module