主键自动增长注解@GeneratedValue
@GeneratedValue
主键的注解要加@Id
@Id
@Service
@Controller @RequestMapping("/path") @ResponseBody