How to avoid the use of Spring annotations in my java beans and use them only in the configuration class?
问题 I'm new in Spring and this is my first post here, I'm starting to use spring annotations, I was able to cofigure my project using XML configuration and now I'm able to configure it using only annotations and avoiding XML. But my current need is to avoid the use of annotations in my java classes (beans) and use it only in my AppConfig.java class which I use to configure Spring. This is my current working configuration: AppConfig.java @Configuration @ComponentScan(basePackageClasses=