One correction to the above:
You'll be able to replace
But, if you're using just annotation-config, your configuration would still need to look like the following:
In either case, @Configuration class processing is on by default, but in one case you're scanning for those classes, and in the other you're explicitly declaring them. The main point is that you don't have to manually register the low-level ConfigurationPostProcessor anymore.