spring核心配置文件_webService的服务器配置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spring核心配置文件_webService的服务器配置相关的知识,希望对你有一定的参考价值。

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
 xmlns:context="http://www.springframework.org/schema/context" xmlns:jaxrs="http://cxf.apache.org/jaxrs"
 xmlns:jdbc="http://www.springframework.org/schema/jdbc" xmlns:tx="http://www.springframework.org/schema/tx"
 xmlns:jpa="http://www.springframework.org/schema/data/jpa" xmlns:task="http://www.springframework.org/schema/task"
 xsi:schemaLocation="
  http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
  http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
  http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsd
  http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
  http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
  http://www.springframework.org/schema/data/jpa
  http://www.springframework.org/schema/data/jpa/spring-jpa.xsd">

 <jaxrs:server id="promotionService" address="/promotionService" >
  <jaxrs:serviceBeans>
   <bean class="cn.itcast.bos.service.take_delivery.impl.PromotionServiceImpl" />
  </jaxrs:serviceBeans>
  <jaxrs:inInterceptors>
   <bean class="org.apache.cxf.interceptor.LoggingInInterceptor" />
  </jaxrs:inInterceptors>
  <jaxrs:outInterceptors>
   <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
  </jaxrs:outInterceptors>
 </jaxrs:server>
 <jaxrs:server id="orderService" address="/orderService" >
  <jaxrs:serviceBeans>
   <bean class="cn.itcast.bos.service.take_delivery.impl.OrderServiceImpl" />
  </jaxrs:serviceBeans>
  <jaxrs:inInterceptors>
   <bean class="org.apache.cxf.interceptor.LoggingInInterceptor" />
  </jaxrs:inInterceptors>
  <jaxrs:outInterceptors>
   <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
  </jaxrs:outInterceptors>
 </jaxrs:server>
 
 
 
</beans>
































以上是关于spring核心配置文件_webService的服务器配置的主要内容,如果未能解决你的问题,请参考以下文章

webservice框架cxf

webservice发布服务:CXF及客户端调用

spring核心配置文件_Elasticsearch搜索配置

spring核心配置文件_Shiro权限控制配置

spring核心配置文件_ActiveMQ消息队列配置

spring核心配置文件_Quartz定时任务调度配置