RESTEasy - @Path requiring a full path?

前端 未结 2 1286
无人及你
无人及你 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条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-09 17:38

    On JBoss AS 7.1 I also had to add to add resteasy.resources ... which is further explained here http://www.javaroots.com/2013/05/creating-rest-services-with-rest-easy.html You may get error like this : Could not find resource for relative : /application/test of full path:... You have to define resteasy.resource context param with the full path of Rest class.

提交回复
热议问题