源码里面写了。
/** * The module that includes http's providers * * @deprecated use @angular/common/http instead */export declare class HttpModule {}
因为有@deprecated,让你使用@angular/common/http