webservice jax-rs与spring整合

maven工程导入相关坐标


        <dependency>
            <groupId>org.apache.cxfgroupId>
            <artifactId>cxf-rt-frontend-jaxwsartifactId>
            <version>${cxf.version}version>
        dependency>

        <dependency>
            <groupId>org.apache.cxfgroupId>
            <artifactId>cxf-rt-frontend-jaxrsartifactId>
            <version>${cxf.version}version>
        dependency>

        <dependency>
            <groupId>org.apache.cxfgroupId>
            <artifactId>cxf-rt-rs-clientartifactId>
            <version>${cxf.version}version>
        dependency>   

        <dependency>
            <groupId>org.apache.cxfgroupId>
            <artifactId>cxf-rt-rs-extension-providersartifactId>
            <version>${cxf.version}version>
        dependency>

        <dependency>
            <groupId>org.codehaus.jettisongroupId>
            <artifactId>jettisonartifactId>
            <version>1.3.7version>
        dependency>

applicationContext.xml配置


<jaxrs:server id="xxxService" address="/xxxService">
     <jaxrs:serviceBeans>
   
       <bean class="com.kayo.main.service.impl.XxxServiceImpl" />
     jaxrs:serviceBeans>
   
                    

你可能感兴趣的:(ssh框架搭建,webservice)