0

I have an application written in AngularJS. It is quite "heavy", so I separated the start page to the static page without all dependencies.

So I have two main files:

  • index.html (start page)

  • app.html (angular application)

My start page has this URL: http://localhost:8080/

The question is - how to set up a Spring Boot so that my AngularJS application will be available at url: http://localhost:8080/#/login

Jelly
  • 184
  • 13
  • change welcomepage with spring boot configuration https://stackoverflow.com/questions/26057995/changing-default-welcome-page-for-spring-boot-application-deployed-as-a-war/29054676 – Gurkan İlleez Dec 13 '17 at 10:37
  • @Gurkanİlleez My welcome page is index.html and I do not want to change it. I want to return different page when # appears. – Jelly Dec 13 '17 at 10:52
  • Your angular application is single page application right? – Gurkan İlleez Dec 13 '17 at 11:05
  • Also you have bootstrap js or typescript file – Gurkan İlleez Dec 13 '17 at 11:09
  • In Spring Boot static sources served but if you have permission problem maybe you can change the spring security part. Which error do you get? – Gurkan İlleez Dec 13 '17 at 11:09
  • `Your angular application is single page application right?` Yes. If I rename my app.html file to index.html, I will be able to use my application by entering AngularJS states names (for example: http//localhost:8080/#/login, http//localhost:8080/#/dashboard). But - I want to have it in index.html. – Jelly Dec 13 '17 at 11:15

0 Answers0