Reputation: 11
So I am autowiring a service bean that I pass a map and it injects objects into it and returns it to my controller. Nowhere in my controller am I ever changing my bean, I send it info, and it returns me something. However, inside the bean, I am using class level variables in order to manage information as it moves around the class. Does this compromise thread safety?
Upvotes: 0
Views: 66
Reputation: 11
I've removed class level variables, and begun passing the objects I need from method to method. Thank you for all of the input!
Upvotes: 0