请访问:https://docs.spring.io/spring-framework/reference/6.2.10-SNAPSHOT/testing/testcontext-framework/ctx-management/javaconfig.html Spring Framework 测试 Spring TestContext 框架 上下文管理 Context Configuration with Component Classes 使用 Groovy 脚本进行上下文配置 混合 XML、Groovy 脚本和组件类