2015-05-10 12:48:54 +00:00
|
|
|
|
### 附录D.1.1 可执行jar文件结构
|
|
|
|
|
|
2015-05-10 13:37:27 +00:00
|
|
|
|
Spring Boot Loader兼容的jar文件应该遵循以下结构:
|
2015-05-10 13:16:34 +00:00
|
|
|
|
|
2015-05-10 13:37:27 +00:00
|
|
|
|
```java
|
2015-05-10 13:16:34 +00:00
|
|
|
|
example.jar
|
|
|
|
|
|
|
|
|
|
|
+-META-INF
|
|
|
|
|
| +-MANIFEST.MF
|
|
|
|
|
+-org
|
|
|
|
|
| +-springframework
|
|
|
|
|
| +-boot
|
|
|
|
|
| +-loader
|
|
|
|
|
| +-<spring boot loader classes>
|
|
|
|
|
+-com
|
|
|
|
|
| +-mycompany
|
|
|
|
|
| + project
|
|
|
|
|
| +-YouClasses.class
|
|
|
|
|
+-lib
|
|
|
|
|
+-dependency1.jar
|
|
|
|
|
+-dependency2.jar
|
|
|
|
|
```
|
|
|
|
|
依赖需要放到内部的lib目录下。
|
|
|
|
|
|