java - Spring controller redirect to another module -


i need help.

i have app, in backend , frontent separated(backend - java + spring, frontent - angularjs), located in different modules in project , connected via rest protocol.

on request mapping "/" should redirect user page index.html, html file located not in same package , module of application spring controller.

i know, can user internalresourceviewresolver redirect user view, located in web-inf folder. not case..

can me problem please? how can redirect user view in module?

structure of application:

enter image description here

you can put index.html in src/main/webapp (not in web-inf) folder , let serving index.html file is. no configuration needed.

additionally rest controllers should respond not on / but, example on /rest/something, can annotate directely controllers classes


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

Voice chat over bluetooth between Android & Python (pybluez) -

Integrate jquery-globalize into an ASP.NET Core MVC App -