spring-framework / org.springframework.jdbc.datasource / SingleConnectionDataSource / destroy

destroy

open fun destroy(): Unit

Close the underlying Connection. The provider of this DataSource needs to care for proper shutdown.

As this bean implements DisposableBean, a bean factory will automatically invoke this on destruction of its cached singletons.