as far as I know, the applications of Java class loader mechanisms are mainly OSGI framework, Tomcat implementation, etc., but there is no need to implement custom loader scenarios at all.
do my colleagues have the same idea?
as far as I know, the applications of Java class loader mechanisms are mainly OSGI framework, Tomcat implementation, etc., but there is no need to implement custom loader scenarios at all.
do my colleagues have the same idea?
well, yes, it is very difficult for ordinary staff to have the opportunity to use it, but be sure to understand what is the class loader , what is the active loading of classes , what is the passive loading of classes , what is the parent delegation mechanism , how to skip the parent delegate mechanism
if you have studied the driver loading of jdbc
or the SPI
mechanism of any application (mainly some classes and implementations under the security package), you will know that the judgment of the class loader is widely used, including skipping the parent delegate mechanism, but if you do not have the accumulation of relevant knowledge, It is very troublesome to understand
cute new: you can export executable jar packages using spring-boot-maven-plugin, which is so convenient and does not need to be equipped with classpath.
Old Bird: his jar package is different from other fatjar. It's amazing that it can directly contain other jar packages.
Boss: although such a jar package can be executed directly, adding such a jar package to classpath has no effect. Other Java programs can't read the classes, so what to do?
Previous: Why convert data types? Why can't 1'be equal to 2?
Next: React hot replaces two parameters of module.hot.accept related to react-hot-loader
there is no problem with the junit unit test, but there is an error when you pack it into a war package and run it in tomcat and use postman to send a simulation request. this is the code part. You want to implement the hot loading function of the jar ...