请访问:https://docs.spring.io/spring-framework/reference/6.2.9/testing/testcontext-framework/ctx-management/property-sources.html Spring Framework 测试 Spring TestContext 框架 上下文管理 Context Configuration with Test Property Sources 使用环境配置文件进行上下文配置 使用动态属性源进行上下文配置