总结:当你封装一个SpringUtils工具类时,获取bean对象的方法时,最好使用BeanFactoryPostProcessor接口里的ConfigurableListableBeanFactory对象,这样可以避免NPE(NullPointerException)的问题。