gpt4 book ai didi

java - 从命令行通过 SSL 使用 Spring HttpInvoker

转载 作者:太空宇宙 更新时间:2023-11-03 14:20:47 24 4
gpt4 key购买 nike

我有一个命令行 spring 应用程序,它通过 Spring 的 HttpInvoker 使用远程 web 服务。连接 URL 在属性文件中配置:

  <bean id="httpFooBarServiceProxy"
class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
<property name="serviceUrl" value="${serverURI}/
FooBarService-httpinvoker.rpc" />
<property name="serviceInterface">
<value>foo.bar.service.Interface</value>
</property>
<property name="httpInvokerRequestExecutor">
<bean
class="org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor" />
</property>
</bean>

一切正常,但现在我们的合作伙伴想通过 HTTPS 使用它来访问在他的 Weblogic 10.3 服务器上运行的服务。

据我所知,应用程序可以保持不变,他只需要将证书(?)导入 keystore (?)并更改属性文件中url中的协议(protocol)。你能确认一下吗?

最佳答案

是的,因为您已经在使用支持 https 的 CommonsHttpInvokerRequestExecutor

关于java - 从命令行通过 SSL 使用 Spring HttpInvoker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6185387/

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