Three ways:
The second is: by defining init-method and destruction-method methods in xml
The third is: implement InitializingBean and DisposableBean interfaces through beans
Three ways:
The second is: by defining init-method and destruction-method methods in xml
The third is: implement InitializingBean and DisposableBean interfaces through beans