config/src/main/java/org/springframework/security/config/annotation/authentication/configurers/provisioning/JdbcUserDetailsManagerConfigurer.java
public JdbcUserDetailsManagerConfigurer<B> dataSource(DataSource dataSource)
			throws Exception {
		this.dataSource = dataSource;
		getUserDetailsService().setDataSource(dataSource);
		return this;
	}
public JdbcUserDetailsManagerConfigurer<B> dataSource(DataSource dataSource)
			throws Exception {
		this.dataSource = dataSource;
		getUserDetailsService().setDataSource(dataSource);
		return this;
	}
public JdbcUserDetailsManagerConfigurer < B > dataSource ( DataSource dataSource ) throws Exception { this . dataSource = dataSource ; getUserDetailsService ( ) . setDataSource ( dataSource ) ; return this ; }
Populates the {@link DataSource} to be used. This is the only required attribute.

@param dataSource the {@link DataSource} to be used. Cannot be null.
@return The {@link JdbcUserDetailsManagerConfigurer} used for additional customizations
@throws Exception
Populates the { @link DataSource } to be used . This is the only required attribute .