application.properties vs application.yaml : Java Spring Boot Interview Q13

Опубликовано: 03 Март 2026
на канале: The Curious Coder
1,729
84

Java Spring Boot Interview Q13 !!

In this episode, we dive deep into the comparison between application.properties and application.yaml (also known as application.yml).

As the title suggests, this video explores the key differences between the two configuration formats used in Spring Boot applications. It explains the advantages and disadvantages of each, clarifies how their syntax and structure affect maintainability, and discusses which format is better suited for different scenarios. Whether you're using application.properties or switching to application.yaml, understanding their behaviour is essential for effective configuration and environment management in Spring Boot projects.

If you’re preparing for Java Spring Boot interviews or looking to solidify your understanding of application configuration, this guide offers a complete walkthrough of how application.properties and application.yaml function, when to use which, and why.

00:00 : Introduction
00:41 : 1st Diff - Structured Indentation in application.yaml
02:50 : 2nd Diff - All Spring Profiles are defined in a single file in application.yaml
08:35 : Hierarchy must be maintained in application.yaml
09:54 : Tip of the Day !

Spring Profiles | application.properties : Environment Property 1 : Java Spring Boot Interview Q12 :
   • Spring Profiles | application.properties :...  

Spring Boot and Java Setup
   • Spring Boot and Java Setup  

Project Object Model File | Understanding pom.xml
   • Project Object Model File | Understanding ...  

How to create an API ?
   • How to create an API ?  

How to Connect Spring Boot to a Database ?
   • How to Connect Spring Boot to a Database ?  "

To access the code , clone below mentioned repository and checkout to branch : environment-properties-part-2
Git Link : https://github.com/TheCuriousCoder-sg...

Instagram :
  / the.curious_coder  

#interview #springboot #java