import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor;
import org.springframework.stereotype.Component;
/**
* @author linzs
* @version v7.0.0
* @since 2020/11/17
*/
@Component
public class RemoveLicenseProcessor implements BeanDefinitionRegistryPostProcessor {
@Override
public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry beanDefinitionRegistry) throws BeansException {
if (beanDefinitionRegistry.containsBeanDefinition("chinaPaymnet")){
beanDefinitionRegistry.removeBeanDefinition("chinaPaymnet");
}
}
@Override
public void postProcessBeanFactory(ConfigurableListableBeanFactory configurableListableBeanFactory) throws BeansException {
}
}
license 移除
最新推荐文章于 2023-01-03 20:19:47 发布