At the moment for configuring Hibernate, Sprint, etc. You can use both XML configs and annotations. Most likely ask "What is better?" meaninglessly, so as not to breed holivar, so I ask the following:
What method do you use and why? What are the advantages and disadvantages of these methods?
So far, after reading a couple of arguments, I tend to annotations.