一、Rest简介及风格
@RequestMapping(
value = {"/lists"},
method = {RequestMethod.GET}
)
@RequestMapping(
value = {"lists/{name}"},
method = {RequestMethod.GET}
)
@RequestMapping(
value = {"/addSign"},
method = {RequestMethod.POST}
)
@RequestMapping(
value = {"/deleteSigns/{id}"},
method = {RequestMethod.DELETE}
)
@RequestMapping(
value = {"/updateSigns"},
method = {RequestMethod.PUT}
)
}
二、Rest快速开发