There's a class in Java called “Properties”, which is basically a kind of Map. In Spring, whenever a bean property expects to be passed a Map, and the keys and values are both Strings, we can use a property map to supply the required map. Don't get confused between a property map, and “properties” meaning the fields of objects (beans). I noticed after making this tutorial that I had initialised my Map property to a new HashMap, which is kind of redundant since Spring will create a new Map; although it does at least allow us to run the toString() method of our bean when it has not had its property map set.
We provide you a special coupon for "The Java Spring Tutorial: Learn Java's Popular Web Framework" course. Buy this course cheaper using our coupon. Our Udemy coupon for "The Java Spring Tutorial: Learn Java's Popular Web Framework" course will automatically apply after you click "Apply Coupon" button. The discount rate changes time to time. After you click "Apply Coupon" button you will be redirected to "The Java Spring Tutorial: Learn Java's Popular Web Framework" page on Udemy and you will see the discounted price.