错误信息:
HTTP Status 404 – Not Found
Type Status Report
Message /services
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat/8.5.33
解决办法:
在app.module.ts文件头部增加:
import { HashLocationStrategy, LocationStrategy } from "@angular/common";
在app.module.ts文件@NgModule中增加:
providers: [
{
provide:LocationStrategy,
useClass: HashLocationStrategy
}
],