RESTEasy - @Path requiring a full path?

前端 未结 2 1285
无人及你
无人及你 2020-12-09 17:17

I was messing around with JAX-RS and made an application which calls REST services which produce JSON. I tried Jersey and everything went fine, but I had to switch to RESTEa

2条回答
  •  -上瘾入骨i
    2020-12-09 17:34

    Solution: add the following in your web.xml

    
        resteasy.servlet.mapping.prefix
        /rest
    
    

    Where /rest is the beginning of your /rest/*

    (Source: http://docs.jboss.org/resteasy/docs/2.0.0.GA/userguide/html/Installation_Configuration.html#d0e72)

提交回复
热议问题