Hi I am relatively new to spring. I use annotations. I doubt that I have class a
public class MyClassA{ @Autowired private MyClassB variableClassB;
in my application context.xml
<context:component-scan base-package="package containing MyClassB" />
My question is: I need to add a bean declaration in applicationContext.xml as follows
<bean id="classB" class="com.MyClassB"
or enough for @Autowired annotation
source share