//截取“:”之前(包括:)的字符
String aaa=errorMsg.substring(0, errorMsg.indexOf(":")+1);
//截取aaa.length()之后的所有字符
String bbb=aaa.substring((messageOne.length()), errorMsg.length());
//xml字符转义
String ccc= StringEscapeUtils.unescapeXml(messaheTwo);
//字符串转对象
Student student = JSONObject.parseObject(ccc,Student.class);
//拼接字符串
backErrorMsg = aaa+bbb;
"+"拼接字符串用于数据少的情况
StringBuffer.append 可用于数据量大时