I'm new to angular, using angular 10.
In "app-routing.module.ts", i can see below config to enable "#" in url
imports: [ RouterModule.forRoot(routes, { useHash: true }) ]
Problem: If i'm running application through vs code on dev server(4200 port) then it redirect url "http://localhost:8081/auth" to "http://localhost:8081/#/auth" and page is loading successfully.
but if i'm running application through intellij(port 8080) as a springboot application then it redirect to "http://localhost:8081/auth" with 404
can anyone please help how to solve this issue?