JAX-RS REST 服务作为库
是否可以将我的其余资源类打包在 .jar 库中,以便当它们包含在某人的应用程序中时,该应用程序可以获得服务?
我目前正在使用球衣(jersey.dev.java.net)
Is it possible to package my rest resource classes in a .jar library so that when they are included in someone's app that app gets the services?
i am currently using jersey (jersey.dev.java.net)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我不明白为什么它不起作用,当然,那个人在他们的 web.xml 中定义了其余的 servlet 来从 jar 中找到你的 REST 包......就像这样:-
Well, I don't see why it won't work GRANTED that person defines the rest servlet in their web.xml to locate your REST package from the jar... like this:-