动态调用接口中的方法

根据查询数据库A表中的字段method的值,动态匹配service中对应的方法

Method method = bussinessMethodService.getClass().getMethod(getMethod, new Class[]{HashMap.class});
datagram = (SoapDatagram) method.invoke(bussinessMethodService, paramMap);

 

 

posted @ 2019-10-25 11:34  honghj  阅读(670)  评论(0编辑  收藏  举报