我在Grizzly上运行Jersey 2.26-b09,并使用以下代码启动Grizzly HTTP服务器: URI uri = UriBuilder.fromPathGrizzlyWebContainerFactory.create(uri, params);}
RestApplication类扩展了应用程序,并有一个@ApplicationPath我可以看到@ApplicationPath中指定的路径被
请参阅server.log获得更多详细信息
当我没有在ResourceConfig实现中声明@ApplicationPath时,部署就成功了。但是,在尝试使用该服务时,我得到了一个404错误。根据泽西的文档,不需要web.xml部署()就需要@ApplicationPath。:182) at org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:348) at org.glassfish.jersey.server.
http server exposing the Jersey application at BASE_URI
return GrizzlyServerFactory.createHttpServer连接到目标VM,地址:'127.0.0.1:61163',传输:‘套接字’12月30日4:00:07 PM com.sun.jersey.api.core.PackagesResourceConfiginit信息:扫描包中的根资源和提供程序类:应用程序Dec 30,2016年4:00:08 PM com.sun.jer