java - Spring Dispatcher servlet for static html files and default path - Stack Overflow
The servlet takes precedence above the <welcome-file-list>, so in this case the <welcome-file-list> will have no effect because the DispatcherServlet consumes all requests, I'm afraid.
The solution is simple however, just add a mapping for the default path in Spring and an controller action sending the view to index.html.
Read full article from java - Spring Dispatcher servlet for static html files and default path - Stack Overflow
No comments:
Post a Comment