获得spring 的bean 一.servlet中
二.普通java类中传统的方法HrService hrService = (HrService) MyApplicationContextUtil.getContext().getBean("hrService");
HrService hrService = (HrService) MyApplicationContextUtil.getContext().getBean("hrService");