layout: ‘[draft]’ title: Spring-Boot相关及Dubbo集成 tags:

  • Spring-Boot
  • Dubbo comments: true toc: true categories:
  • 编程 date: 2017-04-16 11:45:23

We talk about Spring Boot integration with Dubbo this time.

Spring Boot Hello World

一个Spirng Boot的Hello World:

title: 项目添加CXF的WebService支持

date: 2016-03-01 18:10:59

tags: [cxf,spring ]

categories: 编程


  • web.xml文件中添加:

    1
    2
    3
    4
    5
    
    <!-- 配置Context -->
    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>classpath:conf/spring-cxf-core.xml</param-value>
    </context-param>
    
  • web.xml文件中添加:

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    
    <!-- 配置CXFServlet -->
    <servlet>
    <servlet-name>CXFServlet</servlet-name>
    <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
    <load-on-startup>4</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>CXFServlet</servlet-name>
    <url-pattern>/ws/*</url-pattern>
    </servlet-mapping>