spring 根據不一樣的環境初始化相應環境下的bean

須要建個類實現BeanDefinitionRegistryPostProcessor接口下的postProcessBeanDefinitionRegistry方法就行,代碼以下html import cn.linkengine.pre.service.config.bean.annotation.ProfileComponent; import lombok.extern.log4j.Log4j;
相關文章
相關標籤/搜索