code injection - Using springs component-scan and injecting beans -


im using spring 2.5 , writing dispatcherservlet. in context file servlet im using component-scan , giving location of class controllers are. classes use @controller("bean name") annotation.

how can inject properties bean?

thanks

also remember can inject beans defined in main application context beans defined in application context servlet, not vice-versa. these contexts aren't merged, form parent-child relationship.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -