Jersey on Jetty on Android throws ContainerException: The ResourceConfig instance does not contain any root resource classes

前端 未结 1 444
予麋鹿
予麋鹿 2021-01-25 01:19

I\'m trying to run Jersey on Jetty on Android.

I\'ve created an Android that instantiate a Jetty Server with a Jersey Servlet. Anyway when I start Jetty and visit a REST

相关标签:
1条回答
  • 2021-01-25 01:52

    don't use package/any other scanning on .. not supported platforms.

    Classnames property: com.sun.jersey.config.property.classnames should work for you (you need to explicitly declare all your root resource (@Path annotated) classes).

    0 讨论(0)
提交回复
热议问题