Jersey:Jersey 1.9.1 中缺少 GrizzlyWebContainerFactory
我开始按照 教程
来自教程的主类
System.out.println("Starting grizzly...");
SelectorThread threadSelector = GrizzlyWebContainerFactory.create(BASE_URI, initParams);
我的问题是 GrizzlyWebContainerFactory 对我来说不存在。从示例中,该类位于 com.sun.jersey.api.container.grizzly.GrizzlyWebContainerFactory ,但我在任何 jar 中都找不到它。我在这里缺少什么?或者他们将其重构为另一个类?
注意:我的类路径包括:grizzly-servlet-webserver.jar、jersey-server.jar、jersey-core.jar、jsr311-api.jar、asm.jar
I'm getting started learning Jersey by following the tutorial
From Main class of the tutorial
System.out.println("Starting grizzly...");
SelectorThread threadSelector = GrizzlyWebContainerFactory.create(BASE_URI, initParams);
My problem is the GrizzlyWebContainerFactory is not exist for me. From the example, the class is at com.sun.jersey.api.container.grizzly.GrizzlyWebContainerFactory
but I cannot find it in any jars. What am I missing here? Or they refactored it to another class?
Note: My class path includes: grizzly-servlet-webserver.jar, jersey-server.jar, jersey-core.jar, jsr311-api.jar, asm.jar
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据搜索.maven.org,您正在寻找com.sun.jersey:jersey-grizzly:1.9。 1
Per search.maven.org, you're looking for com.sun.jersey:jersey-grizzly:1.9.1