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:
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
Post a Comment