One correction to the above:
You'll be able to replace
Code:
<bean class="myapp.AppConfig"/>
With
Code:
<context:component-scan base-package="myapp"/>
But, if you're using just annotation-config, your configuration would still need to look like the following:
Code:
<context:annotation-config/>
<bean class="myapp.AppConfig"/>
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.