/***清除入参全角空格及转义字符,及双引号 ????所以到底为什么ios传参过来的值会带有这些东西,contentype 的影响? ,因为使用@RequestParam注解所以要删除contentype?* @author wcx*/public String cleanBlank(String str){if (str != null && (str.contains("\\") || str.contains("") || str.contains("\""))) {String replaceFlag = str.replace("\\", "");str = replaceFlag.replace("\"", "").replaceAll("", "").trim();return str;}return str;}
700字范文,内容丰富有趣,生活中的好帮手!