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!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>