How to map servlet to /*, it fails with infinite loop and eventually StackOverflowError

前端 未结 2 1379
盖世英雄少女心
盖世英雄少女心 2020-12-21 10:50

I would like to map my servlet to /*, but it failed with an infinite loop.


    helloServlet         


        
2条回答
  •  遥遥无期
    2020-12-21 11:29

    This is possible duplicate to Servlet Filter going in infinite loop when FORWARD used in mapping in JSF

    Otherwise should check what your JSP contains, it could be that it makes request for css or image files that can result in this behaviour. Also would recommend to try without a wildcard.

提交回复
热议问题