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.

http://www.concretepage.com/spring/example_destroy_method_spring.php


Write Answer










©2024 concretepage.com | Privacy Policy | Contact Us