package the angular code and upload it to the server. Refresh will report 404
Baidu, and add
providers: [{ provide: LocationStrategy, useClass: HashLocationStrategy, }]
although it can solve the problem, it is added after url-sharp, generally does not have this. The home page shows a main domain name. Is there any other way to refresh without 404? For example, server configuration mapping and so on, the server I use is tomcat