spring 声明 rmi 方法
<!-- 引用远程服务 --> <bean id="rmiFunction" class="org.springframework.remoting.rmi.RmiProxyFactoryBean"> <property name="serviceUrl" value="rmi://127.0.0.1:233/rmiFunction" /> <property name="serviceInterface" value="com.zkdg.base.rmi.RmiFunction" /> <property name="lookupStubOnStartup" value="false" /> <property name="refreshStubOnConnectFailure" value="true" /> </bean>