如何在Jboss fuse REST服务(JAX-RS)中启用SSL/TLS?
我已经使用JBossFuse JAX-RS创建了REST服务,XML文件如下所示。 有人能帮我启用此服务的SSL/TLS吗如何在Jboss fuse REST服务(JAX-RS)中启用SSL/TLS?,ssl,https,jax-rs,jbossfuse,Ssl,Https,Jax Rs,Jbossfuse,我已经使用JBossFuse JAX-RS创建了REST服务,XML文件如下所示。 有人能帮我启用此服务的SSL/TLS吗 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:camel="http://camel.apache.org/schema/spring" xmlns:context="http:/
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:camel="http://camel.apache.org/schema/spring"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<jaxrs:server address="http://localhost:9000/employee" id="EmplRestService">
<jaxrs:serviceBeans>
<ref bean="EmplService"/>
</jaxrs:serviceBeans>
</jaxrs:server>
<bean id="EmplService" class="com.sample.beans.EmployeeServiceResource"/>
</beans>
谢谢,因为您使用的是绝对地址 地址=”http://localhost:9000/employee" 您需要按照此处所述配置httpj:engine工厂[1]
[1] 我成功地在REST服务中安装了SSL/TLS,遵循下面的说明参考我从您的参考中获得了一个好的观点,并为我提供了一条正确的路径。但是有一些问题。但我通过以下引用解决了这些问题。谢谢你的评论。