标签: servlet-3.0 url-pattern
如何通过注释在Servlets 3.0中设置两个Url模式:
@WebServlet(urlPatterns = "/flow", asyncSupported = true) public class FlowService extends HttpServlet
此示例适用于一个网址模式,但我想将其设置为两个网址。
答案 0 :(得分:1)
urlPatterns = {"/flow", "/low"}