| 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..
|
 |
 |
|
|
subject: Difference between spring mvc tags
|
|
|