qq_26330263
爱玉宝宝的咸鱼
2015-03-05 02:00

java提取字符串所有引号的值,不包括数字和空格

  • string
  • 引号

字符串:
@ResponseBody
public HashMap queryParcel(
@RequestParam("partnerID") int partnerID,
@RequestParam(value = "mobileNum", required = false) String mobileNum,
@RequestParam(value = "parcelNum", required = false) String parcelNum,
@RequestParam(value = "status", defaultValue = "0") String status,
@RequestParam(value = "queryType", defaultValue = "0") String queryType,
@RequestParam(value = "userType", defaultValue = "0") String userType,
@RequestParam(value = "courierMobileNum", defaultValue = "") String courierMobileNum,
@RequestParam(value = "startNum", defaultValue = "0") int startNum,
@RequestParam(value = "endNum", defaultValue = "10") int endNum,
HttpServletRequest httpRequest) throws Exception {
HashMap response = new HashMap<>();

结果:partnerID mobileNum parcelNum status queryType userType courierMobileNum startNum endNum

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐

换一换