Buggy code:
@ RestController @ RequestMapping ( "//user" ) public class UserController { @ Autowired private UserService userService ; @ RequestMapping ( method = RequestMethod . GET ) public MomiaHttpResponse get ( @ RequestParam String utoken ) { } @ RequestMapping ( value = "//{uid}" , method = RequestMethod . GET ) public MomiaHttpResponse get ( @ PathVariable ( "uid" ) long userId ) { } @ RequestMapping ( value = "//mobile" , method = RequestMethod . GET ) public MomiaHttpResponse getByMobile ( @ RequestParam String mobile ) { } @ RequestMapping ( value = "//invite" , method = RequestMethod . GET ) public MomiaHttpResponse getByInviteCode ( @ RequestParam ( "invite" ) String inviteCode ) { } @ RequestMapping ( value = "//list" , method = RequestMethod . GET ) public MomiaHttpResponse list ( @ RequestParam String uids , @ RequestParam ( defaultValue = "" + ( Type . BASE ) ) int type ) { } @ RequestMapping ( value = "//nickname" , method = RequestMethod . PUT ) public MomiaHttpResponse updateNickName ( @ RequestParam String utoken , @ RequestParam ( "nickname" ) String nickName ) { } @ RequestMapping ( value = "//avatar" , method = RequestMethod . PUT ) public MomiaHttpResponse updateAvatar ( @ RequestParam String utoken , @ RequestParam String avatar ) { } @ RequestMapping ( value = "//cover" , method = RequestMethod . PUT ) public MomiaHttpResponse updateCover ( @ RequestParam String utoken , @ RequestParam String cover ) { } @ RequestMapping ( value = "//name" , method = RequestMethod . PUT ) public MomiaHttpResponse updateName ( @ RequestParam String utoken , @ RequestParam String name ) { } @ RequestMapping ( value = "//sex" , method = RequestMethod . PUT ) public MomiaHttpResponse updateSex ( @ RequestParam String utoken , @ RequestParam String sex ) { } @ RequestMapping ( value = "//birthday" , method = RequestMethod . PUT ) public MomiaHttpResponse updateBirthday ( @ RequestParam String utoken , @ RequestParam @ DateTimeFormat ( pattern = "yyyy-MM-dd" ) Date birthday ) { } @ RequestMapping ( value = "//city" , method = RequestMethod . PUT ) public MomiaHttpResponse updateCity ( @ RequestParam String utoken , @ RequestParam ( "city" ) int cityId ) { } @ RequestMapping ( value = "//region" , method = RequestMethod . PUT ) public MomiaHttpResponse updateRegion ( @ RequestParam String utoken , @ RequestParam ( "region" ) int regionId ) { } @ RequestMapping ( value = "//address" , method = RequestMethod . PUT ) public MomiaHttpResponse updateAddress ( @ RequestParam String utoken , @ RequestParam String address ) { } @ RequestMapping ( value = "//imtoken" , method = RequestMethod . PUT ) public MomiaHttpResponse updateImToken ( @ RequestParam <START_BUG> String utoken , @ RequestParam <END_BUG> String imToken ) { User user = userService . getByToken ( utoken ) ; if ( ! ( user . exists ( ) ) ) return MomiaHttpResponse . TOKEN_EXPIRED ; boolean successful = userService . updateImToken ( user . getId ( ) , imToken ) ; if ( ! successful ) return MomiaHttpResponse . FAILED ( "更新Im<seq2seq4repair_space>Token失败" ) ; user . setImToken ( imToken ) ; return MomiaHttpResponse . SUCCESS ( new User . Full ( user ) ) ; } @ RequestMapping ( value = "//contact" , method = RequestMethod . GET ) public MomiaHttpResponse getContact ( @ RequestParam String utoken ) { } @ RequestMapping ( value = "//{uid}//teacher" , method = RequestMethod . GET ) public MomiaHttpResponse isTeacher ( @ PathVariable ( "uid" ) long userId ) { } @ RequestMapping ( value = "//{uid}//payed" , method = RequestMethod . POST ) public MomiaHttpResponse setPayed ( @ PathVariable ( "uid" ) long userId ) { } }

Fix:
String utoken , @ RequestParam ( "imtoken" )