感觉用法跟效果都差不多
if(obj instance of ApplicationContextAware) { ApplicationContextAwarea = (ApplicationContextAware)obj; a.setApplicationContext(AapplicationContext); }