jdbcTemplate achieve crud operations (add, delete, change operation)
Spring stop frame 1 frame
(1) for javaee levels, each technique has a solution
(2) in the dao layer, the jdbcTemplate
2 Spring persistence layer for different encapsulation techniques
(1) to the jdbcTemplate jdbc encapsulated
3 jdbcTemplate dbutils use and the use of very similar, all database operations crud
Add operation
introduction jdbcTemplate used jar package
2 to create an object, setting information database
3 creates jdbcTemplate objects, set the data source
4 subject which calls jdbcTemplaate implemented method of operation
int rows=jdbcTemplate.update(sql,"zhupeng","123");
Delete
modify operations
// Query menu how many records
Show screenshots
Download program: http://pan.baidu.com/s/1hsiQ3Jm