Dec 7th, 2012, 01:36 AM
<alias> tag not working in spring-mvc context for spring singleton beans
I have created a small project which has Spring-3.0.5 and Spring MVC in it. Following is my context hierarchy
Webcontext is parent of springmvc context. Parent context is parent of webcontext.
Now i have defined a singleton spring bean in my parent context.Created a alias for the same in my webcontext. I have a spring mvc controller in my web layer.
I have injected the alias of singleton spring bean in my controller.
Now while starting my server i get error, @Autowired and @Qualifier is not able to inject the alias bean