Spring Boot applications support YAML as an alternative to the application.properties file. YAML isn’t a markup language but it allows you to define properties in the hierarchical configuration.
Various configuration
How to build Spring Boot native code
This tutorial will teach you how to turn your Spring Boot Java applications in a native executable using the Spring Native project.
Importing properties from an external file in Spring Boot
This article deals with using properties from an external location in a Spring Boot application.
How to send mails in Spring Boot Applications
The Spring Framework provides a straightforward abstraction for sending email by using the JavaMailSender interface, and Spring Boot provides auto-configuration for it as well as a starter module. Start by creating a new project which uses the “mail” starter module:
Injecting Properties with @ConfigurationProperties
Spring Boot has an awesome feature named @ConfigurationProperties that lets you automatically bind the properties defined in the application.properties file into a Java Bean class. Let’s see how to do it.
Running Spring Boot applications as a Service
Running Spring Boot applications as a Service is pretty simple and this tutorial will show how to do it in just 5 minutes.
Using @Grab Annotation in Spring Boot
The @Grab annotation comes from Groovy’s Grape facility. In a nutshell, Grape enables Groovy scripts to download dependency libraries at runtime without using a build tool like Maven or Gradle. In addition to providing the functionality behind the @Grabannotation, Grape is also used by the Spring Boot CLI to fetch dependencies deduced from the code. … Read more
How to change Spring Boot default Banner
You should have noticed that when you run a Spring Boot application a banner is displayed at the beginning of the application. For your own purposes, you can customize the starting banner by implementing the org.springframework.boot.Banner interface. Let’s see an example of it: package com.demo; import java.io.PrintStream; import org.springframework.boot.Banner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.core.env.Environment; … Read more