'Disable spring property in app.yml is not possible

After Upgrading Spring-boot version, we are having circular depenencies problems. So I want to see this with the current version of Spring-boot 2.2.13.RELEASE So I added the following config to my application.yml.

spring.main.allow-circular-references = false

The problem is that it gives me an "Unknown property 'spring.main.allow-circular-references'"? Is it Normal?

Kind regards,



Solution 1:[1]

If you are in a YML, the "normal" way to declare this property is like this:

spring: 
  main:
    allow-circular-references: true

The default value since the last Spring version is false, so if you want to boot you need to start you need to set it to true (and fix it ;) )

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mickaël B.