@@ -31,7 +31,7 @@ public class TestController {
return "test";
}
@RequestMapping("/get/{id}")
- public String getUser(@PathVariable int id){
+ public Integer getUser(@PathVariable int id){
SysUser user = sysUserService.getById(id);
return user.getId();
@@ -18,5 +18,5 @@ import java.io.Serializable;
public class SysUser implements Serializable {
private static final long serialVersionUID = 616589298019846813L;
- private String id;
+ private Integer id;
@@ -24,7 +24,7 @@ public class AddUserTest {
@Test
public void addUser(){
for (int i = 0;i < 1000; i++){
- SysUser user = new SysUser("" + (i + 1));
+ SysUser user = new SysUser( + (i + 1));
userDao.insert(user);