I have my own bean:
@Bean
public MyBean myBean(){...
following spring documentation to release its own resources I should specify destroyMethod. I've not found any default destroy methods called by spring in case if destroyMethod is not specified directly.
I used
@Bean(destroyMethod = "close")
public MyBean myBean(){...
but think about possibility to do not specify destroy method directly if it has value by default.
Does spring try something by default like destroy, close, release?
If spring tries some methods by default to release resources - which ones?
@PreDestroyor@Bean(destroyMethod = "..."), or implementDisposableBean.