@Autowired private ApplicationContext applicationContext; String softPath =
"本地|远程/jar包.jar"; URLClassLoader classLoader = new URLClassLoader(new URL[]{new
URL(softPath)}, Thread.currentThread().getContextClassLoader()); Class aClass=
classLoader.loadClass("完整的接口地址(xxx.xxx.xxx.Ixxx)"); ReferenceBean referenceBean
= new ReferenceBean(); referenceBean.setApplicationContext(applicationContext);
referenceBean.setInterface(aClass); referenceBean.setUrl(url);
referenceBean.afterPropertiesSet(); Object out= referenceBean.get();
System.out.println(JSON.toJSONString(out));
 

技术
©2019-2020 Toolsou All rights reserved,
Linux 文件名合法性检测央视:Tiktok打官司表明了维权的态度和决心【Python-数据读取】读取txt文件每一行数据生成列表css基础2:flex 多行均分有间隙布局(精华)2020年7月12日 webpack 常见插件的使用mybatis系列之返回结果映射Python 读取Excel某一列|转存jsonC语言表白练习小程序(适合初学者)python中switch_to_alert的用法python 动态规划求解单源最短路径