spring 初始化时注入bean实现listener的方法
摘要:
两种方法: 1、实现ApplicationListener<ContextRefreshedEvent>的onApplicationEvent(ContextRefreshedEvent event)方法 并在application.xml或者spring-servlet.xml中注入bean,如下 阅读全文
posted @ 2016-08-08 15:33 anruy 阅读(718) 评论(0) 推荐(0) 编辑