Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 Spring 使用 RMI 公开多个对象?
我从这里写的开始。
如果我想暴露更多对象,我必须声明另一个 RMIServiceExporter 实例吗?
是的,您需要为您希望公开的每个服务声明一个 RMIServiceExporter 实例。每个 RMIServiceExporter 只能与单个服务实例和服务接口相关联。