简体   繁体   中英

Building a data layer using Spring JdbcTemplate

Do you know of any resources that describe building a data access layer using Spring's JdbcTemplate classes? I'm looking for something beyond the basics described in the Spring framework documentation.

If not the online docs, perhaps books will help. "Spring in Action", "Pro Spring", "Spring Recipes" - take your pick. I'm not sure how much detail you're looking for, though. I fear that you'll be disappointed.

I'm not really sure of exactly what it is you are looking for, but I basically create a DAO class that has a SimpleJDBCTemplate as a property. It is set via dependency injection. The public methods of the DAO abstract the interaction with the SimpleJDBCTemplate.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM