请访问:https://docs.spring.io/spring-framework/reference/6.1.21/testing/testcontext-framework/ctx-management/mixed-config.html Spring Framework Testing Spring TestContext Framework Context Management Mixing XML, Groovy Scripts, and Component Classes Context Configuration with Component Classes Configuration Configuration with Context Customizers