Developing Java Applications with Spring and Spring Boot
by Claudio Eduardo de Oliveira, Greg L. Turnquist, Alex Antonov
How it works...
In this recipe, we did a number of things; so let's break them down one change at a time.
The first change, ignoring the need to create the keystore, was the creation of the tomcat.https.properties and TomcatSslConnectorProperties objects to bind them to. Previously, we already dealt with making changes to the various settings in application.properties when configuring our datasource. At that time, though, we did not have to create any binding objects because Spring Boot already had them defined.
As we learned earlier, Spring Boot already exposes many properties to configure the application settings, including a whole set of settings for the server section. These values get bound to an internal Spring Boot class: ServerProperties ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access