Chapter 19. Deploying Spring

 

This chapter covers

  • Building Spring applications as either WAR or JAR files
  • Pushing Spring applications to Cloud Foundry
  • Containerizing Spring applications with Docker

Think of your favorite action movie. Now imagine going to see that movie in the theater and being taken on a thrilling audiovisual ride with high-speed chases, explosions, and battles, only to have it come to a sudden halt before the good guys take down the bad guys. Instead of seeing the movie’s conflict resolved, when the theater lights come on, everyone is ushered out the door. Although the lead-up was exciting, it’s the climax of the movie that’s important. Without it, it’s action for action’s sake.

Now imagine developing applications and putting a lot of effort and creativity into solving the business problem, but then never deploying the application for others to use and enjoy. Sure, most applications we write don’t involve car chases or explosions (at least I hope not), but there’s a certain rush you get along the way. Not every line of code you write is destined for production, but it’d be a big letdown if none of it ever was deployed.

Up to this point, we’ve focused on using the features of Spring Boot that help us develop an application. There have been some exciting steps along the way. But it’s all for nothing if you don’t cross the finish line and deploy the application.

19.1. Weighing deployment options

19.2. Building and deploying WAR files

19.3. Pushing JAR files to Cloud Foundry

19.4. Running Spring Boot in a Docker container

19.5. The end is where we begin

Summary

sitemap