The current springboot version is 3.0.4, Reading spring environment variables failed when using log4j2's configuration file, The file name is changed to log4j2-spring.xml, This problem doesn't exist on windows, but it does on the Mac M1.

<Properties>
        <Property name="APPLICATION_NAME">${spring:spring.application.name}</Property>
        <property name="LOG_HOME">./${APPLICATION_NAME}/logs</property>
</Properties>

Comment From: wiscloud

`

    <Property name="APPLICATION_NAME">${spring:spring.application.name}</Property>

    <property name="LOG_HOME">./${APPLICATION_NAME}/logs</property>
</Properties>

`

Comment From: philwebb

Please could you provide a minimal sample with instructions on how we can replicate the issue.

Comment From: wiscloud

Please could you provide a minimal sample with instructions on how we can replicate the issue.

The cause of the problem has been identified due to the introduction of spring-cloud-starter-bootstrap dependency, but spring.application.nameis configured inapplication.yaml, if the configuration is inbootstrap.yaml, the effect is fine

Comment From: wiscloud

Please could you provide a minimal sample with instructions on how we can replicate the issue.

The cause of the problem has been identified due to the introduction of spring-cloud-starter-bootstrap dependency, but spring.application.nameis configured inapplication.yaml, if the configuration is inbootstrap.yaml, the effect is fine

This should also be a bug, even if bootstrap.yaml was introduced, it should be able to read the application.yaml

Comment From: philwebb

The bootstrap.yml feature is part of Spring Cloud. Please raise your issue at https://github.com/spring-cloud/spring-cloud-commons