Java???·-RMI??
???????????? ???????[ 2014/11/20 10:21:51 ] ????????Java ??????? ????
????3.?????????applicationContext.xml????????????
????a.??????????bean
????<bean id="studentService" class="service.StudentServiceImpl"></bean>
????b.???嵼??????
????<bean class="org.springframework.remoting.rmi.RmiServiceExporter"
????p:service-ref="studentService"
????p:serviceInterface="service.StudentService"
????p:serviceName="StudentService"
????p:registryPort="5008"
????/>
?????????????p:registryHost????????????
????c.???????applicationContext.xml?ж??????????bean(???????????????????bean???????bean???????applicationContext.xml?е?)
????<bean id="getStudentService"
????class="org.springframework.remoting.rmi.RmiProxyFactoryBean"
????p:serviceUrl="rmi://127.0.0.1:5008/StudentService"
????p:serviceInterface="service.StudentService"
????/>
????d.??????????????????????????????????????????????????????
1 package service;
2 import java.util.List;
3 import org.springframework.context.ApplicationContext;
4 import org.springframework.context.support.ClassPathXmlApplicationContext;
5 public class Test {
6 public static void main(String[] args) {
7 ApplicationContext ctx=new ClassPathXmlApplicationContext("applicationContext.xml");
8 StudentService studentService=(StudentService) ctx.getBean("getStudentService");
9 List<Student> list = studentService.getList();
10 for (Student s : list) {
11 System.out.println("??????"+s.getName()+"??????"+s.getAge());
12 }
13 }
14 }
????=============?????============
????????????????????15
???????????????????20
????=============================
?????????mian???????п????????????spring??jar???????????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Java???????????Щ???????????????Java????????????????Java?б???Map????????Java Web???????????????Java??????????????д?????Java????????7???????????????????????(java .net ?????)???Java??????????Python??????Java webdriver??λ????????′????е?????Java??д??????????????????Java???????????????JavaScript????????????Java?????????????????? Java???????10??????????????Java?м????????????????java???????ü???????????м???????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????