有没有人试图根据条件将不同的bean自动连接到Spring管理的bean?例如,如果满足某些条件,则注入A类,否则B?我在其中一个Google搜索结果中看到,使用SpEL(Spring Expression Language)可以实现,但无法找到一个有效的示例.
spring
spring ×1