Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Difference between spring mvc tags

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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..

 
It runs on an internal combustion engine. This ad does not:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic