spring-framework / org.springframework.jdbc.support / JdbcAccessor / setLazyInit

setLazyInit

open fun setLazyInit(lazyInit: Boolean): Unit

Set whether to lazily initialize the SQLExceptionTranslator for this accessor, on first encounter of a SQLException. Default is "true"; can be switched to "false" for initialization on startup.

Early initialization just applies if afterPropertiesSet() is called.

See Also
#getExceptionTranslator()#afterPropertiesSet()