Spring DAO is one among the spring modules component is used to connect, access & manipulate the contents stored in a database.
Two ways to implement Spring DAO for database access:
(1) Spring + JDBC
(2) Spring + JDBC + jdbcTemplate
For both the approaches, we need to configure a data source(using Spring's DriverManagerDataSource).
Among the above 2, using Spring DAO with jdbcTemplate is better, since it needs only the data source as input and through APIs, it communicates with the database.
No comments:
Post a Comment