jsp中获取spring配置文件中的bean

ApplicationContext ctx = new FileSystemXmlApplicationContext("classpath:conf/spring/:spring-action-moniter.xml");
 
 //取得银行监控服务器地址列表
 String rmiService = ((ServerMoniter)ctx.getBean("serverMoniterAction")).getRmiService();

你可能感兴趣的:(spring,bean,jsp,String,服务器)