O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Spring Boot- Getting Started

Video Description

Learn how to create a production-ready, simple web application from scratch

About This Video

  • Create a Spring application from scratch
  • Add a RESTful API and a rich web interface
  • Store data in a relational DB with transactions
  • Configure and operate a Spring Boot application

In Detail

The Spring Framework is the leading alternative to Oracle’s Java EE offering. Spring Boot is the best option to start developing Spring applications with less code and a better development and operations experience.

This lesson is aimed at providing someone having a Java background with the necessary expertise to write a web-based application from scratch that stores data in a relational database and offers a REST-based API and a HTML interface.

We start by creating a new project and exploring the already provided test support. We then move on to add our first Web MVC controller and of course we add tests for this as well. With that knowledge we start to write our sample application and start with a REST-based API. Then, we add data storage via JPA and Spring’s JdbcTemplate.

Further on, we create an HTML interface with thymeleaf and add input validation to both APIs. Spring security is the next topic we explore to secure our application from malicious users. At the end we are going to learn how to configure our application, monitor it, and check out some advanced topics regarding Spring configuration classes and the Spring Expression Language (SpEL).

After completing this course, you will be able to write a maintainable application from scratch that can be deployed and operated with ease.

Downloading the example code for this course: You can download the example code files for all Packt video courses you have purchased from your account at http://www.PacktPub.com. If you purchased this course elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Chapter 1 : Bootstrap…
    1. The Course Overview 00:01:47
    2. Creating a small project 00:08:36
    3. The Spring context 00:10:25
    4. Spring testing 00:06:31
  2. Chapter 2 : WebMVC – a First Glance
    1. Adding WebMVC dependencies 00:12:24
    2. Adding interactivity 00:10:20
    3. Adding interactivity – II 00:09:27
    4. Spring MVC testing 00:10:06
    5. Spring WebMVC testing – II 00:09:10
  3. Chapter 3 : Creating an API
    1. Adding a bookmark 00:12:58
    2. Adding HATEOAS 00:09:40
    3. Fetching a bookmark 00:08:04
    4. Getting all bookmarks 00:06:39
    5. Update a bookmark 00:09:55
    6. Deleting a bookmark 00:08:05
    7. Closing, ResponseStatus, and ResourceAssembler 00:07:25
  4. Chapter 4 : Storing Data in a Database
    1. Adding JPA dependencies 00:05:38
    2. JPA entity and DAO 00:08:06
    3. Adding Flyway for schema migration 00:05:46
    4. Switching to JdbcTemplate 00:06:43
    5. Switching to JdbcTemplate – II 00:07:21
    6. Transactions 00:06:27
  5. Chapter 5 : Creating an HTML-based Interface with Thymeleaf
    1. Adding Thymeleaf 00:07:15
    2. Adding some more fields to the Bookmark class 00:07:15
    3. Adding bookmark details page 00:07:20
    4. Bookmark list 00:08:40
    5. Deleting a bookmark 00:07:29
    6. Adding a bookmark edit form 00:09:23
  6. Chapter 6 : Validating input
    1. Adding validation dependencies 00:10:19
    2. Enabling validation on the model 00:02:48
    3. Activating validation in the REST API 00:09:29
    4. Adding an add form 00:05:17
    5. Adding validation to the HTML UI 00:08:52
  7. Chapter 7 : Securing the App
    1. Adding Spring Security dependencies 00:07:19
    2. Adding the login form 00:09:59
    3. Adding roles and authorization 00:07:16
    4. Adding Spring Security to the HTML UI 00:05:44
  8. Chapter 8 : Preparing the Application for the Release
    1. Spring profiles 00:09:59
    2. Configuration property classes 00:09:05
    3. Spring Boot Actuator 00:08:48
    4. Spring Boot Actuator - II 00:06:06
  9. Chapter 9 : Peeking under the Hood
    1. Advanced Spring configuration 00:10:26
    2. Spring expression language 00:08:27
    3. Spring expression language – II 00:08:31
    4. Spring bean scopes 00:09:38
    5. Spring bean scopes – II 00:02:57
    6. Common configuration options 00:08:44
    7. Common configuration options – II 00:07:40