Nest参考手册
常见问题
快递实例
为了完全控制express
生命周期,您可以将自创建的实例作为方法的第二个参数传递NestFactory.create()
。
const server = express();
const app = await NestFactory.create(ApplicationModule, server);
为了完全控制express
生命周期,您可以将自创建的实例作为方法的第二个参数传递NestFactory.create()
。
const server = express();
const app = await NestFactory.create(ApplicationModule, server);