Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 134539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:37:54+00:00 2026-05-11T06:37:54+00:00

Just been looking at the Spring framework for JDBC – it looks like there

  • 0

Just been looking at the Spring framework for JDBC – it looks like there is a bit of a learning curve – and I’m still not able to find a nice up to date quick start Spring/JDBC tutorial of any quality!

Is there something lighter than Spring for basic JDBC operations – or has anyone got any good links for tutorials

Many thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:37:55+00:00Added an answer on May 11, 2026 at 6:37 am

    Quite the opposite. JDBC support in Spring is very simple. Here is basic example:

    dataSource = ... obtain data source... (e.g. via Spring config) SimpleJdbcTemplate jdbcTemplate = new SimpleJdbcTemplate(dataSource); Map<String, Object> row = jdbcTemplate.queryForMap(         'SELECT * FROM MyTable WHERE ID=? LIMIT 1', 100); 

    JdbcTemplate and SimpleJdbcTemplate has lot of query methods you may find useful. For mapping rows to your objects, take a look at RowMapper and ParameterizedRowMapper < T >.

    For your datasource you usually want to use some advanced DataSource with pooling support. For testing, simple BasicDataSource will do:

    BasicDataSource ds = new BasicDataSource(); ds.setDriverClassName('driverClassName'); ds.setUrl('jdbc://...'); ds.setUsername('username'); ds.setPassword('password'); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just been looking into Linq with ASP.Net. It is very neat indeed.
Been looking everywhere, I just can't seen to find it (probably because I'm wording
I am just getting started couchdb and have been looking into writing couch apps.
I just found an icon set here: http://www.archetype-inc.com/yard/fundamentals/icons/ I've been looking for something like
I just lost 5 hours looking for a answer which i haven't been able
I've been looking at this for hours and I just know the answer is
I've been looking for an answer for that problem, I just can't read my
I've only just started looking at Dapper.net and have just been experimenting with some
I'm pretty new to the Spring Framework, I've been playing around with it and
I've been looking at the constructors of unordered_set. Is it not possible to construct

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.