English 中文(简体)
新泽西州里科学化学Scanner
原标题:Jersey URISchemeScanner

几天前,我遇到泽西岛的部署问题 我在这里张贴了这些

泽西资源公司.glass装载

我们通过扩展 javax.ws.rs.core.Application 来使用替代的部署机制, 从而扩展 javax.ws.rs.core.Application, 并插入一个临时的配置。 但是,在做更多的研究时, 我发现泽西岛扫描仪可以在我们的代码范围内执行。 这可以用来在我们的项目部署结构中查找具体的 JARs 。 我在搜索网络, 却找不到任何具体的例子说明URIschemeScanner 需要如何融入我们的代码 。 (web.xml 配置,等等 ) 感谢您将我指向正确的方向。 (web.xml 配置,等等) 感谢您将我指向正确的方向。

问题回答

来自软件包Namesscanner javadoc:

“其他计划可以通过在META-INF/services档案中登记UriSchemeScanner的实施来登记,该档案的名称是完全合格的UriSchemeScanner等级名称。”

http://jersey.java.net/nonav/apidocs/1.12/jersey/com/sun/jersey/core/spi/scanning/PackageNamesscanner.html>http://jersey.java.net/nonav/apidocs/1.12/jersey/com/sun/jersey/cent/scanning/PackageNamesscanner.html

我也对第七阶段有问题。 我们所做的是将Init Param扫描器从 Web.xml 上移除, 并复制Jar, 其中载有Web- Inf Lib 文件夹中的资源。 然后它就会起作用。 将 J2EE 依赖性添加到单耳耳边是有效的 。

我用的是1.12球衣 但默认扫描仪仍有问题

你能分享一下你所做的自定义扫描仪修改吗? 这样我也能试试吗?





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签