我使用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://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-factory,如[1] [1] http://cxf.apache.org/docs/standalone-http-transport.html所述