微信扫一扫
spring获取类对象,类方法,执行方法 更新:HHH 时间:2023-1-7
Object object = SpringConfigUtil.getBean(beanName);Method method = ReflectionUtils.findMethod(object.getClass(), methodName, PageVO.class);Map resultMap = (Map) ReflectionUtils.invokeMethod(method, object, pageVO);