How to get dataSource for jdbc Connection in Spring

Java Datasource will be used to get JDBC connection in Spring java framework. There are a different ways of getting JDBC connection using DataSource in the java Spring framework and every approach has some meaning