我已经编写了一个带有AMQP监听器的dropwizard服务器应用程序。它没有任何Root资源,因为它不需要。当我启动应用程序时,我得到以下烦人的下面的错误。有没有办法配置泽西到消除错误
ERROR [2014-03-22 19:37:14,583] com.sun.jersey.server.impl.application.RootResourceUriRules: The ResourceConfig instance does
not contain any root resource classes.
! com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
! at com.sun.jersey.server.impl.application.RootResourceUriRules.<init> (RootResourceUriRules.java:99) ~[jersey-server-1.17.1.jar:1.17.1]
! at com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1331) ~[jersey-server-1.17.1.jar:1.17.1]
! at com.sun.jersey.server.impl.application.WebApplicationImpl.access$700(WebApplicationImpl.java:1 68) ~[jersey-server-1.17.1.jar:1.17.1]
答案 0 :(得分:0)
答案 1 :(得分:0)