java
return "forward:success.jsp";
return "redirect:success.jsp";
java
// http://localhost:8083/rest1/zxy/19
@RequestMapping("/rest1/{name}/{age}")
java
// 更新操作 成功返回影响行数
int row = jdbcTemplate.update("insert into `wb_tbl_a`(company_id,status) values (?,?)", 100, 100);
// 查询多个
List<AEntity> query = jdbcTemplate.query("select * from wb_tbl_a",
new BeanPropertyRowMapper<AEntity>(AEntity.class));
// 查询单个
AEntity entity = jdbcTemplate.queryForObjet("select * from wb_tbl_a where id =?",
new BeanPropertyRowMapper<AEntity>(AEntity.class),"10");