@RequestMapping(value = "/get/{id}/{userId}", method = RequestMethod.GET)
public Result getMemberShip(@PathVariable("id") int id,@PathVariable("userId") int userId) {
if id is a non-required parameter, it can be empty. How should it be handled? you can give it a default value, or not in this way, can java give the default value of the passed parameter? it is not clear at the beginning to write java,
.