Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
fc40ad4b
Commit
fc40ad4b
authored
Nov 04, 2013
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add short description of launchers
parent
39acbb27
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
README.md
spring-boot-tools/spring-boot-loader/README.md
+13
-2
No files found.
spring-boot-tools/spring-boot-loader/README.md
View file @
fc40ad4b
# Spring Boot - Loader
# Spring Boot - Loader
The Spring Boot Loader module allows JAR and WAR files that contain nested dependencies
to be run using
`java -jar archive.jar`
.
The Spring Boot Loader module allows JAR and WAR files that contain
nested dependencies to be run using
`java -jar archive.jar`
. There are
3 launcher classes (
`JarLauncher`
,
`WarLauncher`
and
`PropertiesLauncher`
). Their purpose is to load resources (.class
files etc.) from nested JAR files or JAR files in directories (as
opposed to explicitly on the classpath). In the case of the
`[Jar|War]Launcher`
the nested paths are fixed
`(lib/*.jar`
and
`lib-provided/*.jar`
for the WAR case) so you just add extra JARs in
those locations if you want more. The
`PropertiesLauncher`
looks in
`lib/`
by default, but you can add additional locations by setting an
environment variable
`LOADER_PATH`
or
`loader.path`
in
`application.properties`
(colon-separated list of directories).
> **Note:** The quickest way to build a compatible archive is to use the
> **Note:** The quickest way to build a compatible archive is to use the
> [spring-boot-maven-plugin](../spring-boot-maven-plugin) or
> [spring-boot-maven-plugin](../spring-boot-maven-plugin) or
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment