Spring知识点回顾(08)spring aware
BeanNameAware 获得容器中的bean名称
BeanFactoryAware 获得当前的bean factory
ApplicationContextAware 获得当前的ApplicationContext
MessageResourceAware 获得messageresource,可以获得文本消息
ApplicationEventPublisherAware 应用事件发布器,可以发布事件
ResourceLoaderAware 获得资源加载器,用于加载外部资源文件