首页 > 编程语言 > 详细

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

时间:2017-06-03 18:01:24      阅读:268      评论:0      收藏:0      [点我收藏+]

<?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的服务器配置

原文:http://www.cnblogs.com/huqin/p/6937942.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!