Reputation: 468
I am new to annotation based programming and don't know what maven artifact to add to my pom.xml for org.springframework.transaction.annotation.Transactional, I googled(like first 5 pages of search results) but unable to find what am i looking for. I am using spring 3. Also if there is any online tutorial to know more about annotations in spring. thanks!!
Upvotes: 3
Views: 12688
Reputation: 4765
A special case for the former answer. If you use mybatis and maven,
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>1.1.1</version>
</dependency>
would import spring-tx package for you as:
[INFO] +- org.mybatis:mybatis:jar:3.1.1:compile
[INFO] +- org.mybatis:mybatis-spring:jar:1.1.1:compile
[INFO] | +- org.springframework:spring-tx:jar:3.1.1.RELEASE:compile
[INFO] | \- org.springframework:spring-jdbc:jar:3.1.1.RELEASE:compile
Upvotes: 0
Reputation: 691635
It's in spring-tx.
The Spring documentation covers Spring quite nicely.
Upvotes: 11