zoukankan      html  css  js  c++  java
  • Dubbox服务的提供方配置

    在src/main/resources下创建applicationContext-service.xml ,内容如下:

    <?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:p="http://www.springframework.org/schema/p"

        xmlns:context="http://www.springframework.org/schema/context"

        xmlns:dubbo="http://code.alibabatech.com/schema/dubboxmlns: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">

        

        <dubbo:application name="dubboxdemo-service"/> //当前应用名称,配置为工程名称即可

       <dubbo:registry address="zookeeper://192.168.25.132:2181"/> //注册中心地址

       <dubbo:annotation package="cn.itcast.dubboxdemo.service" /> //业务逻辑实现类所在的包

    </beans>

  • 相关阅读:
    Django 的中文教程
    VisualStudio code插件集锦(持续更新)
    Django3最新版本安装配置
    python 中的 *args 和 **kwargs
    拉格朗日乘子法
    softmax中的margin控制
    softmax中的smooth程度控制
    从boosting角度理解softmax
    从 smooth&最优化 角度理解softmax
    寻找 函数max(x, y) 的平滑解
  • 原文地址:https://www.cnblogs.com/cn-chy-com/p/11118646.html
Copyright © 2011-2022 走看看