Book Image

Spring Boot - Getting Started

By : Patrick Cornelißen
Book Image

Spring Boot - Getting Started

By: Patrick Cornelißen

Overview of this book

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.
Table of Contents (9 chapters)
Chapter 9
Peeking under the Hood
Content Locked
Section 6
Common configuration options
Spring is very configurable by default. It's good to know the important settings - Explore WebConfigurerAdapter - Explore configuration options