praneeth ram wrote:I added @Transactional. but how to add <tx:annotation--driven> in xml file.
Add the Spring tx namespace, then just add that
String in your xml file. Just like you are using <bean> that comes from Spring's bean namespace.
If you are using STS, there is a tab below the xml file called "namespaces" you can select that tab and see checkboxes. Find the one for the tx namespace and select it, now you add <tx:annotation-driven>
Mark