Spring Integration CFX

Source: Internet
Author: User
Tags class definition xmlns

The difference is that only the corresponding interface, there is no main function to set a name in Web. XML, and then introduce the CFX related servlet corresponding class definition a servlet, when accessing this servlet, will go to its path

Define a spring configuration file

 1. Declaration 1. Xmlns:jaxws= "Http://cxf.apache.org/jaxws"//soap style to be cited in the package xmlns:jaxrs= "HTTP://CXF.  Apache.org/jaxrs "//restful style 2. Http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd Http://cxf.apache.org/jaxrs http://cx F.apache.org/schemas/jaxrs.xsd 2. <import resource= "Classpath:meta-inf/cxf/cxf.xml"/> <jaxws:endpoint id= "HelloWorld" implementor = "Com.atguigu.cxf.spring.HelloWorldImpl" address= "/helloworld" >//implementor implement class full path, define address relative addresses </j axws:endpoint> <jaxrs:server id= "customerservice" address= "/custservice" > &L
                    t;jaxrs:servicebeans> <bean class= "Com.atguigu.service.CustomerService"/> 
</jaxrs:serviceBeans> </jaxrs:server> 2. 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.