Announcement Announcement Module
Collapse
No announcement yet.
<alias> tag not working in spring-mvc context for spring singleton beans Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • <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
Working...
X