You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am getting this exception from spring after upgrading versions from 6.1.14 to 6.2.1
Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'CTIChild' is expected to be of type 'org.springframework.transaction.TransactionManager' but was actually of type 'org.springbug.txbug.CTIChild$$SpringCGLIB$$0'
i created an example project where the issue can be reproduced.
You can fix it by using @Component("CTIChild") instead of @Component @Qualifier("CTIChild"), please refer to Javadoc of Qualifier.
This annotation may be used on a field or parameter as a qualifier for candidate beans when autowiring. It may also be used to annotate other custom annotations that can then in turn be used as qualifiers.
Hi,
i am getting this exception from spring after upgrading versions from 6.1.14 to 6.2.1
Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'CTIChild' is expected to be of type 'org.springframework.transaction.TransactionManager' but was actually of type 'org.springbug.txbug.CTIChild$$SpringCGLIB$$0'
i created an example project where the issue can be reproduced.
https://github.com/zesman21/springbug/tree/main
This commit intruduced this spring framework issue:
#24291
can you please have a look at that issue and confirm that this is a real bug?
thanks
The text was updated successfully, but these errors were encountered: