Learn how to package a compiled artifact with Spring Boot and take a look at when to use a JAR vs. a WAR, and vice versa.
- [Instructor] When it comes to packaging a…Spring Boot application, most of the examples…that you're gonna see are gonna use a JAR file.…And indeed, that's what we've been doing…to date, but that's not the only way…to truly package your Spring Boot application.…Let's start our discussion with a little bit of explanation…about what is special about a Spring Boot JAR file.…Now, as I mentioned, it is the default behavior…for packaging out of the box.…Spring Boot produces a so-called fat jar,…or a shaded jar, that not only contains the source code…that you create in that JAR file,…but all of the dependencies…that your source code relies on in order to operate.…
In addition, the Spring Boot JAR file is executable.…Now, what that means is that it has a small script…in the beginning of it when it's packaged…that allows you to run it from the command line…by using a command like java -jar,…or it can be registered with systemd,…or init.d on Linux-based distributions.…And that makes it very powerful,…especially when we're moving to a cloud environment…
AuthorFrank P Moley III
- Creating a Spring Boot application
- Configuring a Spring Boot app
- Leveraging profiles
- Packaging and running Spring Boot web apps
- Building a command-line application
- Using Spring Boot starters: Spring Data, Spring Security, and more
- Extending Spring Boot
- Using Spring Boot Actuator to monitor app health and other metrics
Skill Level Intermediate
What you need to know4m 14s
1. Boot Camp
2. Web Applications with Spring Boot
3. Command-Line Applications with Spring Boot
4. Using Spring Boot Starters
5. Extending Spring Boot
6. Extending Actuator
Next steps3m 1s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.