Spring MVC Annotations with Global Context context:component-scan?

You can load your contexts hierarchically so that context described in annotation-context. Xml becomes a parent of your Spring MVC context. The latter will then be able to access all the beans defines in the former Spring documenation describes several ways to do it.

For example, in your web. Xml : load parent context contextConfigLocation /WEB-INF/annotation-context. Xml org.springframework.web.context.

ContextLoaderListener // load Spring MVC context spring-mvc org.springframework.web.servlet. DispatcherServlet 1.

You can load your contexts hierarchically so that context described in annotation-context. Xml becomes a parent of your Spring MVC context. The latter will then be able to access all the beans defines in the former.

Spring documenation describes several ways to do it. For example, in your web. Xml: // load parent context contextConfigLocation /WEB-INF/annotation-context.

Xml org.springframework.web.context. ContextLoaderListener // load Spring MVC context spring-mvc org.springframework.web.servlet. DispatcherServlet 1.

1 Yes, thats exactly what I'm doing. Controller's in the parent context are not seen by spring mvc in spring-mvc servlet's context. They can be called manually however, just that dispatcherservlet doesn't see them or their path mappings.

– jsight Nov 23 '09 at 18:44.

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