Domanda di colloquio di IBM

What is a bean? How do you take the data from the database using Spring?