I am new to spring .
I have understood the @Autowired annotation and in order to use it. i have learnt that we should use 1)context:annotation-config or 2)AutowiredAnnotationBeanPostProcessor. But when I saw a sample project I did not find anything so is it mandatory to use the above mentioned things.
I am thinking that @Autowired annotation will create the objects when we deploy our web.xml in the server because in standalone application when i have tested we are using public static void main(String[] args) to invoke the bean class.But in the web project we don't have anything like that so when we deploy our web.xml in the server or application.xml which contains spring configurations objects will get created.
Is my understanding correct in the above 2 imaginations.
Please help me.