码迷,mamicode.com
首页 > 编程语言 > 详细

spring获取类对象,类方法,执行方法

时间:2019-10-24 15:43:36      阅读:97      评论:0      收藏:0      [点我收藏+]

标签:方法   reflect   获取   ref   name   getbean   class   resultmap   conf   

Object object = SpringConfigUtil.getBean(beanName);
Method method = ReflectionUtils.findMethod(object.getClass(), methodName, PageVO.class);
Map resultMap = (Map) ReflectionUtils.invokeMethod(method, object, pageVO);

spring获取类对象,类方法,执行方法

标签:方法   reflect   获取   ref   name   getbean   class   resultmap   conf   

原文地址:https://blog.51cto.com/butcher36/2445070

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!