@Override
    public void afterPropertiesSet() throws Exception {
        if (dataSource == null) {
            throw new IllegalStateException("'dataSource' property must be set");
        }
        super.afterPropertiesSet();
    }
Verifies that a dataSource has been set
spring5/src/main/java/org/jdbi/v3/spring5/JdbiFactoryBean.java