Thank you for a very clear article that has both the old (XML) and new (annotations) config with good explanations and not like so many others, "just do this..." with no explanation and don't work anyway.
Most importantly, when I tried it, it worked 1st time!