aspose file tools
The moose likes Spring and the fly likes Difference between spring mvc tags Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "Difference between spring mvc tags" Watch "Difference between spring mvc tags" New topic
Author

Difference between spring mvc tags

Rakesh Basani
Ranch Hand

Joined: Jun 04, 2012
Posts: 38
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
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1282

Rakesh,

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

Please review this thread
http://www.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.


[How To Ask Questions][Read before you PM me]
Rakesh Basani
Ranch Hand

Joined: Jun 04, 2012
Posts: 38
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..

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Difference between spring mvc tags
 
Similar Threads
Message Driven Bean and JMS
JMS Vs. MDB
MDA Vs SOA
<mvc:annotation-driven/> Vs <context:annotation-config/>
Continuous Integration Vs TDD(Test Driven Development)