How to access static resources when mapping a global front controller servlet on /*

前端 未结 19 2342
轮回少年
轮回少年 2020-11-22 07:35

I\'ve mapped the Spring MVC dispatcher as a global front controller servlet on /*.

               


        
19条回答
  •  自闭症患者
    2020-11-22 08:00

    Add the folders which you don't want to trigger servlet processing to the section of your appengine-web.xml file.

    I just did this and looks like things are starting to work ok. Here's my structure:

    /

    /pages/<.jsp files>

    /css

    I added "/pages/**" and "/css/**" to the section and I can now forward to a .jsp file from inside a servlet doGet without causing an infinite loop.

提交回复
热议问题