Simplify annotation
MODIFY
dd-java-agent/instrumentation/spring-data/src/test/java/spring/jpa/JpaPersistenceConfig.java
dd-java-agent/instrumentation/spring-data/src/test/java/spring/jpa/JpaPersistenceConfig.java
@@ -15,8 +15,8 @@ import org.springframework.transaction.PlatformTransactionManager;
@EnableJpaRepositories(basePackages = "spring/jpa")
public class JpaPersistenceConfig {
- @Bean(name = "transactionManager")
- public PlatformTransactionManager dbTransactionManager() {
+ @Bean
+ public PlatformTransactionManager transactionManager() {
final JpaTransactionManager transactionManager = new JpaTransactionManager();
transactionManager.setEntityManagerFactory(entityManagerFactory().getObject());
return transactionManager;

Simplify @Bean annotation