67,512
社区成员
发帖
与我相关
我的任务
分享
ApplicationContext ctx=new ClassPathXmlApplicationContext("classpath:spring.xml");
UserDao ud=(UserDao)ctx.getBean("ud");
ud.sayHello();
<bean class="org.springframework.remoting.rmi.RmiServiceExporter"
p:service-ref="userDao"
p:serviceName="UserDao"
p:serviceInterface="rmi.UserDao"
p:registryPort="11199"/>