many url-pattern for the same servlet

后端 未结 2 1043
眼角桃花
眼角桃花 2020-12-09 01:15

I need to map the same servlet on two different url. I used netbeans 7.0.1 for managing my whole project, so I used its friendly interface to modify the web.xml file. What n

2条回答
  •  南笙
    南笙 (楼主)
    2020-12-09 02:19

    Tomcat container will support 3 url patterns:

    1. complete character sequence
    2. /*
    3. *. ext (star means anything)

    /* is recommended for only one single framework

    if you use multiple framework then recommended .*

提交回复
热议问题