gpt4 book ai didi

java - 如何配置@HandlerChain 以指向JAR 文件中的处理程序链配置文件?

转载 作者:搜寻专家 更新时间:2023-10-31 20:15:15 25 4
gpt4 key购买 nike

有没有办法引用在 JAR 文件中分发的处理程序配置文件(例如:handler.xml)?

类似这样的东西:@HandlerChain(file="somefile.jar")@HandlerChain(file="myhandler.xml"),假设 myhandler.xml 存储在 somefile.jar 中。

最佳答案

For both server and client implementations of handlers using the @HandlerChain annotation, you must specify the location of the handler configuration as either a relative path from the annotated file or as an absolute URL. For example:

@HandlerChain(file="../../common/handlers/myhandlers.xml")

or

@HandlerChain(file="http://foo.com/myhandlers.xml")

取自this文档。

关于java - 如何配置@HandlerChain 以指向JAR 文件中的处理程序链配置文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7908726/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com