When I add this propriety spring.main.allow-circular-references=true in local it works fine but when I run the project using graalvm it doesn't work with I tried also @Lazy it does not work with circular dependency issues

Java version: 20

spring-boot version : 3.2.6

Comment From: snicoll

Please share a sample of what you mean with instructions to reproduce. You can attach a zip to this issue or push the code to a GitHub repository.

Comment From: abugozeh

@snicoll, sorry I can't provide the code, but the issue is that I upgraded from Spring 2 to Spring 3, and then a circular dependency occurred:

A --> B --> C --> A

I tried to add the following to application.properties:

spring.main.allow-circular-references=true Locally, without using GraalVM native image, it works fine. However, when I use the GraalVM native image, the circular dependency issue still appears.

Comment From: snicoll

I am not asking you to provide your application but a small sample that replicates the behaviour. We can’t really help if we have to guess your configuration arrangement.

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.