Composition vs Aggregation

Kitchen in House is Composition and Engine in Car is Aggregation Composition: If internal attributes can not exist without Outer Class, that goes to Composition. You can not take Bedroom, Kitchen or Balcony out of any Flat or House. i.e public class CompositionExample{   public static void main(String[] args) { House house = new House(); … More Composition vs Aggregation

@ConfigurationProperties in Spring Boot

There are number of ways you can externalize your configuration properties in application so that you can work in different environment. You can use properties files, YAML files, environment variables, and command-line arguments to externalize configuration. Property values can be injected directly into your beans by using the @Valueannotation but that is very tedious and … More @ConfigurationProperties in Spring Boot

Spring Profiles

Spring profile is a way to achieve environment specific execution of class or code i.e. Spring Profiles provide a way to segregate parts of your application configuration and make it be available only in certain environments.  If you want to run your piece of code or initialize any specific bean in any certain environment, Spring … More Spring Profiles

Dynamic Programming

Remember your past. Yes this is all about Dynamic Programming. Jonathan Paulson explains Dynamic Programming in his amazing Quora answer here.Writes down “1+1+1+1+1+1+1+1 =” on a sheet of paper. “What’s that equal to?”Counting “Eight!”Writes down another “1+” on the left. “What about that?””Nine!” ” How’d you know it was nine so fast?””You just added one more!” “So you didn’t need … More Dynamic Programming

Hello Liquibase

You will never check-in your code without any version control tool. Be it GIT or SVN or anything. Then why would you make changes in your database without and versioning strategy. Would you? Liquibase is one of the database changes version control tool. It is an open source library for tracking, managing and applying database … More Hello Liquibase

Spring Boot Actuator

Actuators are nothing but Spring Boot provided production-ready features to our application. Spring Boot includes a number of additional features to help you monitor and manage your application when you push it to production. You can choose to manage and monitor your application by using HTTP endpoints. Monitoring of application, gathering metrics, understanding traffic becomes … More Spring Boot Actuator