aspose file tools*
The moose likes Spring and the fly likes Switching to spring 3 MVC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Switching to spring 3 MVC" Watch "Switching to spring 3 MVC" New topic
Author

Switching to spring 3 MVC

Ankit Chandrawat
Ranch Hand

Joined: Jan 03, 2008
Posts: 87
Hi,

We have just migrated from spring 2 to spring 3. The mapping defined in dispatcher servlet is done in the following way for all the controllers and other spring classes.( I have given just a rough idea of how mapping has been done).



Now I want to create a new controller using @Controller annotation and need to be provide the mapping in dispatcher servlet. As far as I know for that I shall have to use
<context:annotation-config/> for auto detection. Is it possible to implement <context:annotation-config/> just for the one new controller that I am going to implement. If yes then how ?
Please let me know if I need to be more clear with my query.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Switching to spring 3 MVC
 
Similar Threads
Bridge between REST & WS
controller don't display view
Spring new bie problem
Doubt regarding how to specify servlet mapping URL patterns in web.xml
How dispatcher-servlet.xml works