接口的使用
org.springframework.boot.loader.tools.Libraries
使用Libraries的程序包
-
org.springframework.boot.loader.tools中Libraries的使用
修饰符和类型方法说明voidImagePackager.packageImage(Libraries libraries, BiConsumer<ZipEntry, EntryWriter> exporter) Create a packaged image.voidRepackage to the given destination so that it can be launched using ' java -jar'.voidRepackager.repackage(File destination, Libraries libraries, LaunchScript launchScript) Repackage to the given destination so that it can be launched using ' java -jar'.voidRepackager.repackage(File destination, Libraries libraries, LaunchScript launchScript, FileTime lastModifiedTime) Repackage to the given destination so that it can be launched using ' java -jar'.voidRepackage the source file so that it can be run using 'java -jar'.protected final voidPackager.write(JarFile sourceJar, Libraries libraries, AbstractJarWriter writer) protected final voidPackager.write(JarFile sourceJar, Libraries libraries, AbstractJarWriter writer, boolean ensureReproducibleBuild)