Java dynamically adding external jar packages to classpath
Java dynamically adding external jar packages to classpath
preface:
In the process of project development, we sometimes need to dynamically add external jar packages, but the specific business requirements have not been met, because after dynamically adding external jar packages, we need to modify the business code, and to modify the code, we need to restart the service, so it seems that it is not necessary to dynamically add external jar packages, How can I use the latest code without restarting the server? I haven't found a way. If you know, give me some suggestions. Go back to the topic and realize the dynamic addition of external jar packages to the classpath as follows:
If you have any questions, please leave a message or go to the community of this site for exchange and discussion. Thank you for reading. I hope it can help you. Thank you for your support to this site!