Autowired annotation issue, not injecting bean in class, using Spring3.0, hibernate?

I think you are missing Also make sure that your ConfigService class has @Service("configService") Annotation, it will make this class candidate for autowiring. And of cause you should use for the ConfigService package name.

I tried both but still it is displaying null as output. – Sagar May 10 at 14:05 component scan is there in my XML, you can see that in XML code I shared in question itself. Do I need to change it?

– Sagar May 10 at 14:08 you need to changeor add new one which refers to configService package – danny. Lesnik May 10 at 14:10 you can check beansdefinition. Xml, in that I added component scan which refers to service package.

But same output. – Sagar May 10 at 14:29 Could you please post ConfigService code and it's interface code? – danny.

Lesnik May 10 at 15:15.

StockTraderLogger is not declared as spring bean and doesn't exist in spring context and for that reason the injection won't work. Or @Component public class StockTraderLogger { /**/ }.

Both not working – Sagar May 11 at 10:25.

Add this to beans xmlns:mvc="springframework.org/schema/mvc"" rel="nofollow">springframework.org/schema/mvc" and springframework.org/schema/mvc to xsi:schemalocation Better refer some example over net mvc-annotation driven is reqd 4 annotated controllers and other features hope it resolves your prob.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions