string
小贼驴
这个作者很懒,什么都没留下…
展开
-
字符串倒序单词顺序不变保留空格
// hello world xiao hong >>> hong xiao world hello public static String conversionStr(String string) { if (string == null || "".equals(string)) return null; S原创 2017-12-12 21:03:26 · 1203 阅读 · 0 评论 -
ajax异步请求 后台用Spring的@RequestBody接受java对象
今天遇到错误代码:415不支持的媒体类型。Failed to load resource: the server responded with a status of 415 (Unsupported Media Type)以前都没遇到这个情况,今天突然遇到,就花了点时间测试整理下1.首先我们要知道@RequestBody 是用来干嘛的:接受一个JSON’字符串’注意是 字符串 不是JSON对象,原创 2017-12-30 12:30:36 · 9838 阅读 · 0 评论 -
去除 unicode 12288 全角空格(注意trim 无法去除)
/** * @Author: Lang * @Date: 2018/5/2 14:10 * @Description: 去除unicode为12288字符为全角空格(trim()无法去除),与一般空格 * @param str * @return: java.lang.String */ public static String ...原创 2018-05-02 15:04:37 · 2222 阅读 · 0 评论
分享