Skip to main content
1-Visitor
February 16, 2016
Solved

How to get java.sql.Connection object by code?

  • February 16, 2016
  • 1 reply
  • 2069 views

Hi to all!

I need to get Connection object from Spring. Anybody know how to do it?

Thanks!

Best answer by AntonBagryanov

Thanks, Lori. The reference below give good information of how to use JdbcTemplate object.

Spring JdbcTemplate Querying examples

1 reply

23-Emerald I
March 9, 2016

Anton, were you able to figure this out? I did a quick Google search and came across this and thought it might be helpful just in case:

http://stackoverflow.com/questions/25328155/getting-java-sql-connection-from-spring-jdbc-getjdbctemplate

AntonBagryanov1-VisitorAuthorAnswer
1-Visitor
March 22, 2016

Thanks, Lori. The reference below give good information of how to use JdbcTemplate object.

Spring JdbcTemplate Querying examples