Created
May 6, 2021 07:26
-
-
Save sandipchitale/706c52eb16deb3ac35006f55d1112fbd to your computer and use it in GitHub Desktop.
Bean postprocessing #springframework #beans
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.springframework.beans.factory.config.BeanPostProcessor; | |
@Component | |
public static class BPP implements BeanPostProcessor { | |
@Override | |
public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException { | |
System.out.println("#######" + beanName + ": " + bean.getClass().getName()); | |
return bean; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment