后台获取 已存在的 ApplicationContext 对象

来源:互联网 发布:js查找字符串中字符 编辑:程序博客网 时间:2024/06/08 01:56
ApplicationContext ac = ApplicationContextUtil.getContext();UserService userService = (UserService) ac.getBean("userServiceImpl");
0 0
原创粉丝点击