-
Dec 7th, 2012, 01:36 AM
#1
<alias> tag not working in spring-mvc context for spring singleton beans
Hi,
I have created a small project which has Spring-3.0.5 and Spring MVC in it. Following is my context hierarchy
ParentContext
WebContext
Spring-mvc context.
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules