This repo tries to reproduce and solve the issues with using React's BrowserRouter with Spring-Boot (single page application / SPA:
React redirects to http://localhost:8080/cat but this lead to a 404 in Spring-Boot.
cd frontend
npm run build
cd ../backend
mvn spring-boot:run
Please find the alternative solutions in the branches of this repo.