发表于: 2017-03-15 23:36:19

1 1166


今天完成的事情:编写完成车辆上传的接口,重新梳理任务八
明天计划的事情:编写车辆编辑的接口,还有车辆删除
遇到的问题:暂无
收获:今天改完车辆上传代码,等前端代码之后才能调接口。重新梳理任务八,熟悉rmi。

           将server和web公共的部分放到一个模块里面

        server里面放接口的实现部分,通过rmi绑定端口号

<bean id="studentServiceExporter" class="org.springframework.remoting.rmi.RmiServiceExporter">
   <property name="serviceName" value="StudentService"/>
   <property name="service" ref="studentService"/>
   <property name="serviceInterface" value="com.ptteng.service.StudentService"/>
   <property name="registryPort" value="8001"/>
   <property name="servicePort" value="8002"/>
</bean>

web从端口去取信息

<bean id="studentService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
   <property name="serviceUrl" value="rmi://localhost:8001/StudentService"/>
   <property name="serviceInterface" value="com.ptteng.service.StudentService"/>
</bean>



返回列表 返回列表
评论

    分享到