For the latest stable version, please use Spring Boot 3.4.0!spring-doc.cn

Executable Jar Restrictions

You need to consider the following restrictions when working with a Spring Boot Loader packaged application:spring-doc.cn

  • Zip entry compression: The ZipEntry for a nested jar must be saved by using the ZipEntry.STORED method. This is required so that we can seek directly to individual content within the nested jar. The content of the nested jar file itself can still be compressed, as can any other entry in the outer jar.spring-doc.cn

  • System classLoader: Launched applications should use Thread.getContextClassLoader() when loading classes (most libraries and frameworks do so by default). Trying to load nested jar classes with ClassLoader.getSystemClassLoader() fails. java.util.Logging always uses the system classloader. For this reason, you should consider a different logging implementation.spring-doc.cn