Skip to content

@Transactional can't resolve by @Qualifier PlatformTransactionManager created in @Configuration classes [SPR-7232] #11891

Closed
@spring-projects-issues

Description

@spring-projects-issues

Baruch Sadogursky opened SPR-7232 and commented

Simple test:

  1. Define two @Bean methods returning PlatfromTransactionManagers with different @Qualifiers
  2. Annotate test class with @Transactional, providing one of the qualifiers as value param

Result: java.lang.IllegalStateException: No matching PlatformTransactionManager bean found for qualifier 'a' - neither qualifier match nor bean name match!

Test attached.


Affects: 3.0.2

Attachments:

Referenced from: commits 6c6004a

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions