Spring Boot Loader兼容的jar文件应该遵循以下结构:
example.jar | +-META-INF | +-MANIFEST.MF +-org | +-springframework | +-boot | +-loader | +-<spring boot loader classes> +-BOOT-INF +-classes | +-mycompany | +-project | +-YourClasses.class +-lib +-dependency1.jar +-dependency2.jar
应用类需要放在内嵌的BOOT-INF/classes目录下。依赖需要放在内嵌的BOOT-INF/lib目录下。
BOOT-INF/classes
BOOT-INF/lib
最后更新于4年前