• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Difference between spring mvc tags

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys..

Please explain me the difference between following tags

<mvc:annotation-driven>
<context:annotation-driven>
<tx:annotation-driven>
<context:component-scan base-package=" ">
<context:annotaion-config>


Thanks in advance
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rakesh,

Did you forget we already answered most of this question for you a little while back?

Please review this thread
https://coderanch.com/t/586286/Spring/mvc-annotation-driven-Vs-context

That previous post explains the following:

<mvc:annotation-driven>
<context:component-scan base-package=" ">
<context:annotation-config>


For the remaining 2

<context:annotation-driven> - This is not defined in the context schema, I am not sure where you found this.

<tx:annotation-driven> - This enables Spring's support for transaction management using the @Transactional annotation.

 
Rakesh Basani
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply bill..

I recently came accross <tx:annotation-driven> .. So I just thought that It would be better to post all tags to get clear view..
One more thing <context:annotation-driven> does not exist.. you are right.. sorry for post that..

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic