@Autowired private ApplicationContext applicationContext; String softPath =
" local | long-range /jar package .jar"; URLClassLoader classLoader = new URLClassLoader(new URL[]{new
URL(softPath)}, Thread.currentThread().getContextClassLoader()); Class aClass=
classLoader.loadClass(" Complete interface address (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));
 

Technology
©2019-2020 Toolsou All rights reserved,
Final review of database : Summary of comprehensive application questions use Python Make simple games Laplance operator ( Second derivative ) Convert hard disk to GPT Partition format Python Implementation of Hanoi Tower code about String How to create objects vue3 Learning journey 1—— establish vue3 project java String from back to front _Java String String summary use Python Write a story about plants versus zombies 【 Greedy Algorithm 】 Huffman coding problem