Spring MVC - AlwaysUseFullPath configuration for annotation based mappings?

Up vote 1 down vote favorite share g+ share fb share tw.

I am developing a Spring MVC application. I am moving away from XML configuration of the Controllers to annotation based config using @Controller and @RequestMapping to define the URL mapping to controllers. Previously I defined the mappings in config as follows: statusController You will see that I have defined the property alwaysUseFullPath as true for my url mappings.

I want to set this property for the annotation mappings (@RequestMapping) and I have two questions: 1) Is it possible to do this on a class by class basis? E.g. If I want some of my controllers to have this property but some other controllers not to, is that possible?

2) I have seen that it can be set by configuring in XML the DefaultAnnotationHandlerMapping and setting hte property in there (looks like this will apply the property to all annotations) - but I have found this issue - is this resolved now? Or is the only way to get around this to not use the line? Thanks java spring spring-mvc link|improve this question asked Aug 9 '11 at 10:48rhinds1,126614 91% accept rate.

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