Hi, currently I've got a map defined in my spring config. I'm doing a constructor injection on a Injector class and sending my map to the class. Inside the class I'm making changes to the code and adding values to the map. The issue I'm facing is that when I'm trying to get the same map in some other class it is not picking up the added values instead it has just the default values that have been added. Here are the code snippets
Wont the spring ensure that as I'm passing the map by reference instead of value, all the modifications done on the map in the class will be available throughout the application. Only thing i would need to do is to @Autowire this map and use it.???