dubbo
清风自来&静等花开
Each person has a unique way of seeing, hearing, touching, tasting and thinking.
展开
-
dubbo之配置文件
以下分别介绍提供方和消费方的配置文件:一、提供方<?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:d...原创 2019-02-26 19:19:18 · 3950 阅读 · 0 评论 -
dubbo之提供方
提供方接口实现如下:1.dubbo接口package com.test.dubboservicepublic interface ITestService { public void test();}2.dubbo接口实现package com.test.manager.implpublic class TestService implements ITestService {...原创 2019-02-26 19:32:45 · 468 阅读 · 0 评论 -
dubbo之消费方
消费方接口实现如下:1.dubbo接口package com.text.dubboservice;public interface ITestService{ public void test();}2.使用public class TestController{ //业务处理 private void test(){ Object obj = getService("1....原创 2019-02-26 19:41:04 · 259 阅读 · 0 评论