This Spring-boot project is integrated with Angular 4. I can reach the home page when type the url adress >> localhost:8080
.
I get whitelabel error page when type any diffent url is added parameter like: /login, /signup.
There was an unexpected error (type=Not Found, status=404).
I can reach these pages (localhost:8080/signup
, localhost:8080/foo
, ..) on website using angular-routing. So the problem is about only hitting url directly.
So How can I solve this, any idea to check would be helpful.
Note: There is no authorization for these url in server side.
Edit: index.html path added.
src/main/resources
static
assets
index.html
bundle
bundle
..
routing.ts
export const routes: Routes = [
{
path: '',
component: HomeComponent,
pathMatch: 'full'
},
{
path:'signup',
component: SignupComponent,
canActivate: [GuestGuard],
pathMatch:'full'
},