Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Micronaut in Spring gives the Error #598

Open
firdouserp opened this issue Jul 10, 2024 · 1 comment
Open

Micronaut in Spring gives the Error #598

firdouserp opened this issue Jul 10, 2024 · 1 comment

Comments

@firdouserp
Copy link

firdouserp commented Jul 10, 2024

Expected Behavior

I have included the micronaut-spring in my spring-boot application. I also included the MicronautApplicationContext as parent into SpringApplicationContext.
However, on Start of SpringApplication i get the following error:
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'transactionInterceptor' defined in class path resource [org/springframework/transaction/annotation/ProxyTransactionManagementConfiguration.class]: @Bean definition illegally overridden by existing bean definition: Generic bean: class [io.micronaut.spring.tx.annotation.TransactionInterceptor]; scope=singleton; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodNames=null; destroyMethodNames=null

Actual Behaviour

getting the erro

org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'transactionInterceptor' defined in class path resource [org/springframework/transaction/annotation/ProxyTransactionManagementConfiguration.class]: @bean definition illegally overridden by existing bean definition: Generic bean: class [io.micronaut.spring.tx.annotation.TransactionInterceptor]; scope=singleton; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodNames=null; destroyMethodNames=null

Steps To Reproduce

spring-boot-micronaut-data-gradle-java.zip

Get a sping boot application from spring initializer. Spring boot 3.2.7
include the micronaut-spring 5.6.0

Environment Information

jdk 17

Example Application

No response

Version

5.6.0

@firdouserp
Copy link
Author

firdouserp commented Jul 11, 2024

Here is the project to reproduce the errror
spring-boot-micronaut-data-gradle-java.zip

Article i followed : https://guides.micronaut.io/latest/spring-boot-micronaut-data-gradle-java.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant