Learning Spring Boot

Learn how to use Spring Boot to build apps faster than ever before
Preview in Mapt

Learning Spring Boot

Greg L. Turnquist

1 customer reviews
Learn how to use Spring Boot to build apps faster than ever before
Mapt Subscription
FREE
$29.99/m after trial
eBook
$18.90
RRP $26.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$18.90
$44.99
$29.99 p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Learning Spring Boot Book Cover
Learning Spring Boot
$ 26.99
$ 18.90
Learning Spring Boot 2.0 - Second Edition Book Cover
Learning Spring Boot 2.0 - Second Edition
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $27.98
Add to Cart

Book Details

ISBN 139781784393021
Paperback252 pages

Book Description

This practical, accessible guide helps you get up and running fast with Spring Boot. This book starts by crafting a Spring MVC application using the Spring stack on top of Apache Tomcat, with little configuration on from your end. You will also learn how to write both JUnit and Spock test cases. Then, you'll pull back the curtain and see how Spring Boot works by using Spring Messaging (JMS and AMQP) as well as creating custom metrics, custom information, and custom CLI commands aimed at production environments. In the last two chapters, you'll see how Spring Boot supports everyday situations we all deal with. You will learn how to create multiple configurations inside your app that can interact with different data stores.

By the end of the book, you'll have a good understanding of how Spring Boot works, how it manages low-level infrastructure, and how to start out production-grade apps with built-in support tools as well as custom ones.

Table of Contents

Chapter 1: Quick Start with Groovy
Getting started
Installing Spring Boot's CLI
Testing with Spring Boot's CLI
Bundling and deploying a Spring Boot application
Adding support for templates
Modernizing our app with JavaScript
Adding production-ready support features
Summary
Chapter 2: Quick Start with Java
Creating an empty project with start.spring.io
Running a Spring Boot application
Adding Spring Social GitHub
Digging into GitHub issues
Delving into Spring Boot's property support
Adding server-side mobile support with Spring Mobile
Creating a mobile frontend with jQuery Mobile
Bundling up the application as a runnable JAR
Deploying to Cloud Foundry
Adding production-ready support
Summary
Chapter 3: Debugging and Managing Your App
Creating a JMS-based publisher/subscriber app
Using Spring Boot's auto-configuration report
Overriding Boot with alternate beans or properties
Writing a custom health check to ping ActiveMQ
Adding customized app data to /info
Creating custom metrics to track the message traffic
Tweaking management ports, address, and paths
Restricting access only to JMX
Connecting to the app via JConsole and jmxterm
Creating custom CRaSH commands
Summary
Chapter 4: Data Access with Spring Boot
Creating an app using H2's in-memory database
Defining entities and repositories
Loading data using a SQL script
Loading data programmatically
Adding a production profile for a MySQL database
Adding Spring Data REST and using it to manage teammates
Reconfiguring our app to use Spring Data MongoDB
Running our MongoDB-based app
Summary
Chapter 5: Securing Your App with Spring Boot
Getting started
Defining our domain
Loading the test data
Creating a server-side controller
Crafting our HTML templates
Running our unsecured application
Securing our app
Navigating with basic authentication
Enhancing the security model of our app
Configuring user data to persist
Configuring embedded Tomcat to use SSL
Spring Security's default web-level protections
Navigating our fully secured app
Summary

What You Will Learn

  • Use Spring Boot's CLI tool to build rapid Groovy-based apps without even touching a build tool
  • Craft a Spring JMS app with ActiveMQ
  • Work with multiple database configurations using Spring Data JPA in development and production as well as Spring Data MongoDB
  • Find out exactly what beans Spring Boot is creating for you, and why it decided to do so
  • Secure your app at the URL and method levels
  • Use Spring Data REST to export your Spring Data repositories to support independent clients
  • Configure the embedded Tomcat servlet engine to use SSL and see how it automatically uses HSTS

Authors

Table of Contents

Chapter 1: Quick Start with Groovy
Getting started
Installing Spring Boot's CLI
Testing with Spring Boot's CLI
Bundling and deploying a Spring Boot application
Adding support for templates
Modernizing our app with JavaScript
Adding production-ready support features
Summary
Chapter 2: Quick Start with Java
Creating an empty project with start.spring.io
Running a Spring Boot application
Adding Spring Social GitHub
Digging into GitHub issues
Delving into Spring Boot's property support
Adding server-side mobile support with Spring Mobile
Creating a mobile frontend with jQuery Mobile
Bundling up the application as a runnable JAR
Deploying to Cloud Foundry
Adding production-ready support
Summary
Chapter 3: Debugging and Managing Your App
Creating a JMS-based publisher/subscriber app
Using Spring Boot's auto-configuration report
Overriding Boot with alternate beans or properties
Writing a custom health check to ping ActiveMQ
Adding customized app data to /info
Creating custom metrics to track the message traffic
Tweaking management ports, address, and paths
Restricting access only to JMX
Connecting to the app via JConsole and jmxterm
Creating custom CRaSH commands
Summary
Chapter 4: Data Access with Spring Boot
Creating an app using H2's in-memory database
Defining entities and repositories
Loading data using a SQL script
Loading data programmatically
Adding a production profile for a MySQL database
Adding Spring Data REST and using it to manage teammates
Reconfiguring our app to use Spring Data MongoDB
Running our MongoDB-based app
Summary
Chapter 5: Securing Your App with Spring Boot
Getting started
Defining our domain
Loading the test data
Creating a server-side controller
Crafting our HTML templates
Running our unsecured application
Securing our app
Navigating with basic authentication
Enhancing the security model of our app
Configuring user data to persist
Configuring embedded Tomcat to use SSL
Spring Security's default web-level protections
Navigating our fully secured app
Summary

Book Details

ISBN 139781784393021
Paperback252 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Spring Boot Cookbook Book Cover
Spring Boot Cookbook
$ 23.99
$ 16.80
Spring Microservices Book Cover
Spring Microservices
$ 39.99
$ 28.00
Building a RESTful Web Service with Spring Book Cover
Building a RESTful Web Service with Spring
$ 23.99
$ 16.80
Spring MVC: Beginner's Guide - Second Edition Book Cover
Spring MVC: Beginner's Guide - Second Edition
$ 35.99
$ 25.20
Apache Camel Developer's Cookbook Book Cover
Apache Camel Developer's Cookbook
$ 29.99
$ 21.00
Spring: Developing Java Applications for the Enterprise Book Cover
Spring: Developing Java Applications for the Enterprise
$ 67.99
$ 47.60