<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>RMI on 知识铺的博客</title>
    <link>https://index.zshipu.com/geek/tags/RMI/</link>
    <description>Recent content in RMI on 知识铺的博客</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-CN</language>
    <lastBuildDate>Wed, 06 Mar 2024 12:19:00 +0000</lastBuildDate>
    <atom:link href="https://index.zshipu.com/geek/tags/RMI/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Spring-RMI</title>
      <link>https://index.zshipu.com/geek/post/code/docs/Spring/RMI/Spring-RMI/</link>
      <pubDate>Wed, 06 Mar 2024 12:19:00 +0000</pubDate>
      <guid>https://index.zshipu.com/geek/post/code/docs/Spring/RMI/Spring-RMI/</guid>
      <description>Spring RMI Author: HuiFer 源码阅读仓库: SourceHot-Spring Spring 远程服务调用 DEMO 服务提供方 服务提供方需要准备接口、接口实现泪 接口 1 2 3 public interface IDemoRmiService { int add(int a, int b); } 接口实现 1 2 3 4 5 6 public class IDemoRmiServiceImpl implements IDemoRmiService { @Override public int add(int a, int b) { return a + b; } } xml 配置文件 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 &amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;UTF-8&amp;#34;?&amp;gt; &amp;lt;beans xmlns:xsi=&amp;#34;http://www.w3.org/2001/XMLSchema-instance&amp;#34; xmlns=&amp;#34;http://www.springframework.org/schema/beans&amp;#34; xsi:schemaLocation=&amp;#34;http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd&amp;#34;&amp;gt; &amp;lt;bean id=&amp;#34;demoRmiService&amp;#34; class=&amp;#34;com.huifer.source.spring.rmi.impl.IDemoRmiServiceImpl&amp;#34;/&amp;gt; &amp;lt;bean id=&amp;#34;demoRmi&amp;#34; class=&amp;#34;org.springframework.remoting.rmi.RmiServiceExporter&amp;#34;&amp;gt; &amp;lt;!-- 服务--&amp;gt; &amp;lt;property name=&amp;#34;service&amp;#34; ref=&amp;#34;demoRmiService&amp;#34;/&amp;gt; &amp;lt;!-- 服务名称</description>
    </item>
  </channel>
</rss>
