Dubbox 소비자 서비스 구성

SRC / 메인 / 자원 만들기의 ApplicationContext-web.xml을 

<? XML 버전 = "1.0" 인코딩 = "UTF-8" ?>

<콩의 xmlns = "http://www.springframework.org/schema/beans"

    XMLNS : XSI = "http://www.w3.org/2001/XMLSchema-instance" XMLNS : P = "http://www.springframework.org/schema/p"

    XMLNS : 문맥 = "http://www.springframework.org/schema/context"

    XMLNS : 두보 = "http://code.alibabatech.com/schema/dubbo" XMLNS : MVC = "http://www.springframework.org/schema/mvc"

    XSI :의 schemaLocation = "http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd

        http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd

        http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd

        http://www.springframework.org/schema/context 

http://www.springframework.org/schema/context/spring-context.xsd ">

 

    <MVC : 주석 중심>

        <MVC : 메시지 컨버터 레지스터 기본값 = "FALSE">

            <bean 클래스 = "org.springframework.http.converter.StringHttpMessageConverter"> 

                <생성자 인수 값 = "UTF-8"/>

            </ 콩> 

        </ MVC : 메시지 컨버터>

    </ MVC : 주석 중심>

    <! - 참조는 두보 서비스 ->

    <두보 : 응용 프로그램 이름 = " dubboxdemo -web" />

    <두보 : 레지스트리 주소 = "사육사 : // 192.168.25.132 : 2181" />

     <두보 : 주석 패키지 = "cn.itcast.dubbo X demo.controller" />

</ 콩>

추천

출처www.cnblogs.com/cn-chy-com/p/11118683.html