Skip to content

In Spring Boot 2.4 @EntityScan does not support property substitution #25436

@tjuchniewicz

Description

@tjuchniewicz
@SpringBootApplication
@EntityScan("com.${test}")
public class EntityScanExampleApplication {

    public static void main(String[] args) {
        SpringApplication.run(EntityScanExampleApplication.class, args);
    }
}
test=value

For code above, in Spring Boot 2.4 entityscan.getPackageNames() returns com.${test}.
Worked in Spring Boot 2.3 and before.

Project to reproduce and check with 2.3: https://github.com/tjuchniewicz/spring-boot-entityscan-issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: regressionA regression from a previous release

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions