ok this post will be last potst abaut dependency injection in spring. ok let's start with implementasion step as usual i post : Create Properties File Load Properties File in Spring Config file Reference values from properties file 1.create properties file 2. Load properties file in spring config file 3. Reference values from properties file 4. run your app confused ? or get some error? please feel free to ask me... or you can clone this project from here .
in this post i will explain how to inject some value to a class / service. implementasion step : Create Setter method in your class for injection Configure the injection in Spring Config File 1. Create property with getter and setter 2. Cofigure your spring config file 3. call from your app 4. result will like this Confused ? you can clone in my repository here .