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
Spring boot uses AOT processing to generate required reflect/proxy/resource configs as well as CGLIB proxy classes in compile time. For beans defined with interface types, CGLIB proxy is usually unnecessary so process-aot job does not generate CGLIB proxy.
When org.springframework.data:spring-data-mongodb is imported, java native projects with repository beans defined with interface types will encounter exception in runtime about unexpected CGLIB usage for the repository class.
Update: upon further investigation, just having org.springframework:spring-tx is enough to trigger the issue. It's not directly caused by spring-data-mongodb.