drandarov-io / Spring-5-Angular-4-Gradle-Example

An example of using Spring 5 with Angular 4 configured by Gradle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refreshing Page Crashes App in bootFullApplication Mode.

vtsarkov opened this issue · comments

Hello!

I'm experiencing an issue where refreshing the angular app in the browser when served by Spring Boot
through :bootFullApplication shows the default "/error" mapping.

When running the angular app through ng-serve, refreshing the browser page on "http://localhost:4200/dashboard" works.

When serving the angular app through Spring Boot, refreshing the browser page on "http://localhost:8080/dashboard" redirects to Spring's default "/error".

Presumably because "/dashboard" and that is not a resource exposed through the Spring Boot Controller.

Thank you!

Hi,
this doesn't seem to be a trivial issue. As I don't have time right now to evaluate / fix it myself: If you find this mistake, please create a pull request and I can merge it.

Hi, I created a pull request. The solution requires the configurations of all angular routes in a backend controller, but it would enable page refresh.

Thanks a lot! :)