提交 566eeba8 编写于 作者: J Juergen Hoeller

specified excluded names matched against unprefixed FactoryBean names as well (SPR-5926)

上级 9f75eb4f
......@@ -904,7 +904,10 @@ public class MBeanExporter extends MBeanRegistrationSupport
* Indicates whether or not a particular bean name is present in the excluded beans list.
*/
private boolean isExcluded(String beanName) {
return (this.excludedBeans != null && this.excludedBeans.contains(beanName));
return (this.excludedBeans != null &&
(this.excludedBeans.contains(beanName) ||
(beanName.startsWith(BeanFactory.FACTORY_BEAN_PREFIX) &&
this.excludedBeans.contains(beanName.substring(BeanFactory.FACTORY_BEAN_PREFIX.length())))));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册