Home  >  Forum  >  Spring
Post New Query

Couldn't find a destroy method named 'clean' on bean with name '

Asked on April 17, 2013
Hi All, Need any suggestion to fix the below error.

Caused by: org.springframework.beans.factory.support.BeanDefinitionValidationException: Couldn't find a destroy method named  on bean with name 
at org.springframework.beans.factory.support.DisposableBeanAdapter.<init>(DisposableBeanAdapter.java:106)
at org.springframework.beans.factory.support.AbstractBeanFactory.registerDisposableBeanIfNecessary(AbstractBeanFactory.java:1492)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:560)
... 11 more

Replied on April 17, 2013
You have given wrong destroy method. You need to cross check the method name. Also you can get help from the url.


Write Answer

©2022 concretepage.com | Privacy Policy | Contact Us