Spring里的applicationContext.getBeansWithAnnotation

getBeansWithAnnotation


Map<String,Object> getBeansWithAnnotation(Class<? extends Annotation> annotationType)
throws BeansException


Find all beans whose Class has the supplied Annotation type.


Parameters:
annotationType - the type of annotation to look for
Returns:
a Map with the matching beans, containing the bean names as keys and the corresponding bean instances as values
Throws:
BeansException - if a bean could not be created

Spring里的applicationContext.getBeansWithAnnotation

上一篇:destoon-手机版会员公司主页首页调用商城信息


下一篇:Android基于XMPP Smack Openfire下学习开发IM(五)连接断开重连