Spring Boot – Custom Banner
Setting Spring Boot Custom Banner What is Banner? Banner can be a plain text or image that is displayed while starting up any spring boot application, which would be something like below by default. . ____ _ __ _ _ /\\ / ___’_ __ _…
Spring Boot – Logging
Logging in Spring Boot uses Apache Commons Logging for all internal logging but leaves the underlying log implementation open. The Commons Logging (JCL) provides a Log interface that is intended to be both light-weight and an independent abstraction of other logging toolkits. We shouldn’t worry about…
Spring Boot – Profiles
Guide to Spring Boot Profiles Spring Boot Profiles provide a way to segregate parts of your application configuration and make it be available only in certain environments. Profiling can be implemented using multiple ways in Spring Boot. Let’s see possible ways of loading profiles. This…
Spring Boot – YAML
YAML stands for “YAML Ain’t Markup Language“ YAML is built from the ground up to be simple to use. At its core, a YAML file is used to describe data. One of the benefits of using YAML is that the information in a single YAML file…
Spring Boot – Properties file – I
Spring Boot – Managing Properties File or Externalized Configuration Properties file plays a vital role in configuring application as any changes to application file doesn’t requires recompilation of code. In Spring Boot, managing properties is simple and we have multiple ways to achieve it. Spring…
Spring Boot – ApplicationRunner
What is use of Spring Boot ApplicationRunner Interaface? Spring bootApplicationRunnerInterface is used to execute specific lines of code/task just before the Spring Boot Application starts-up. ApplicationRunnerand CommandLineRunnerinterfaces work in the same way and offer a single run method, which is called just before SpringApplication.run(…) completes. How Spring boot ApplicationRunner interface Works?…
Spring Boot – CommandLineRunner
What is use of Spring Boot CommandLineRunner Interaface? CommandLineRunner Interface is used to execute specific lines of code/task just before the Spring Boot Application starts-up. How CommandLineRunner works? We need to create spring bean using CommandLineRunner interface and spring boot will automatically detect them. CommandLineRunner Interface have run() method that needs to…
Spring Boot – Events & Listeners
Application Listener in Spring Boot bases its events handling on beans implementing org.springframework.context.ApplicationListener interface. It defines only one method, onApplicationEvent which is trigerred when an event is sent. This interface can be generic by specifying the event to which it has to be applied. Spring will filter itself which…
Spring Boot – Dev Tools
What does Spring Boot Devtools (Development Tools)? To make developers life easy, Spring Boot includes an additional set of tools that can help reduce development time and have some pleasant time in programming. The spring-boot-devtools module can be included in any project to provide additional development-time features….
Spring Boot – Starters
Spring Boot Application Starters Spring boot application starters are a set of required dependency description added for execution of project. It’s a kind of predefined template or one-stop shop for all the Spring and related technologies dependency description. For example, if you want to get…