Getting a redirect loop accessing a webapp's welcome page
-
27-10-2019 - |
문제
I'm not sure why, but accessing my webapp at http://localhost:8080/MyApp is giving me a redirect loop.
I have no servlets or servlet mappings, and my welcome page is at Tomcat/webapps/MyApp/index.html, which is a simple "hello world" html page.
Any ideas? Why would Tomcat be redirecting? Maybe something is configured wrong in eclipse?
해결책
Assuming that you have indeed no servlets or filters mapped on /*
or /
, then this can only happen if the first match as defined in a <welcome-file>
of webapp's web.xml
is basically referring to /
.
제휴하지 않습니다 StackOverflow