> For the complete documentation index, see [llms.txt](https://jack80342.gitbook.io/spring-boot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jack80342.gitbook.io/spring-boot/x.-appendices/e.-the-executable-jar-format/e.2.-spring-boots-jarfile-class/e.2.1.-compatibility-with-the-standard-java-jarfile.md).

# 附录E.2.1. 对标准Java "JarFile"的兼容性

Spring Boot Loader努力保持对已有代码和库的兼容。`org.springframework.boot.loader.jar.JarFile`继承自`java.util.jar.JarFile`，可以作为降级替换。`getURL()`方法返回一个与`java.net.JarURLConnection`兼容的`URL`，并可与Java的`URLClassLoader`一起使用。
