简体   繁体   中英

Missing @AnnotationDrivenTx Spring3

my collegues sais i should convert the spring's app-context.xml into java.

For that i need to have the @AnnotationDrivenTx-Annotation i cant find.

Any workaround here?

Regards.

You could download it as separate jar from a MavenRepository:

<dependency>
    <groupId>org.springframework.javaconfig</groupId>
    <artifactId>spring-javaconfig</artifactId>
    <version>1.0.0.m3</version>
</dependency>

But it´s from 2008 and seems not to be developed anymore. These features can be found in spring-tx component and @EnableTransactionManagement is the way to go as Charles said.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM