йŮU20vsŮU23

˴ӵַΪ:@AutowiredprivateIAddressServiceaddressService;??/**?*ջַ?*@paramaddressDTO?*@return?*/@RequestMapping(method=RequestMethod.POST)publicAddressDTOadd(@Valid@RequestBodyAddressDTOaddressDTO){??Addressaddress=newAddress();??BeanUtils.copyProperties(addressDTO,address);??Addressresult;??try{????result=addressService.createAddress(addressDTO.getUid(),address);??}catch(NotFindUserExceptione){????thrownewApiNotFindUserException("Ҳû");??}catch(Exceptione){//δ֪????thrownewApiException(e);??}??AddressDTOresultDTO=newAddressDTO();??BeanUtils.copyProperties(result,resultDTO);??resultDTO.setUid(result.getUser().getId());???returnresultDTO;}Ĵǵserviceʱж쳣ͣȻκservice쳣תapi쳣Ȼ׳api쳣dzõһ쳣תʽ?17λѧҵרҡʼˣԭЩ鼮ֱӰеľ˵岻ǺܺãûҽգûҽʨӷͿշӪػɡĿҲǽҷоֲˣǻɡ˶˷˿
4.15全民国家安全教育日:一起聚焦网络安全