wanglichao1
wanglichao1
the RC1 is no problem
the demo url: https://github.com/wanglichao1/shardingsphere-demo update the db info,run the demo , visit twice http://localhost:8080/get
org.apache.shardingsphere.shardingjdbc.jdbc.core.resultset.ResultSetUtil ` public static Object convertValue(final Object value, final Class convertType) { if (null == value) { return convertNullValue(convertType); } if (value.getClass() == convertType) { return value; } if (value...
4.0.0-RC2-SNAPSHOT is OK
i update to the newest code,the code is ok
方法 public static void main(String[] args) throws Exception { String report="{\"courseList\":[{\"rowData\":[{\"text\":\"12月6日(星期三)\"},{\"text\":\"08:00-02:34\"},{\"text\":\"课程需要改\"},{\"text\":\"专家\\n\"}],\"style\":{\"align\":{}}},{\"rowData\":[{\"text\":\"12月7日(星期四)\"},{\"text\":\"10:19-01:23\"},{\"text\":\"课程2\"},{\"text\":\"专家2\\n\"}],\"style\":{\"align\":{}}},{\"rowData\":[{\"text\":\"12月8日(星期五)\"},{\"text\":\"08:01-08:02\"},{\"text\":\"课程4\"},{\"text\":\"专家\\n\"}],\"style\":{\"align\":{}}}],\"clazz\":\"班级2\"}"; String detail = "[{\"studentCount\":0,\"introspection\":\"\",\"teacherName\":\"专家\",\"satisfied\":0,\"teacherWorkPlace\":\"\",\"cheatUsers\":\"\",\"signUserCount\":0,\"ordinary\":0,\"absenceUsers\":\"\",\"absenteeismUsers\":\"\",\"leaveMessages\":\"\",\"signRate\":0,\"courseName\":\"课程需要改\",\"notSatisfied\":0,\"verySatisfied\":0,\"submitCount\":0,\"location\":\"\",\"teacherTitle\":\"\",\"clazzName\":\"班级2\",\"courseTime\":\"12月6日(星期三) 08:00-02:34\"},{\"studentCount\":0,\"introspection\":\"\",\"teacherName\":\"专家2\",\"satisfied\":0,\"teacherWorkPlace\":\"\",\"cheatUsers\":\"\",\"signUserCount\":0,\"ordinary\":0,\"absenceUsers\":\"\",\"absenteeismUsers\":\"\",\"leaveMessages\":\"\",\"signRate\":0,\"courseName\":\"课程2\",\"notSatisfied\":0,\"verySatisfied\":0,\"submitCount\":0,\"location\":\"\",\"teacherTitle\":\"\",\"clazzName\":\"班级2\",\"courseTime\":\"12月7日(星期四) 10:19-01:23\"},{\"studentCount\":187,\"introspection\":\"\",\"teacherName\":\"专家\",\"satisfied\":0,\"teacherWorkPlace\":\"\",\"cheatUsers\":\"\",\"signUserCount\":0,\"ordinary\":0,\"absenceUsers\":\"\",\"absenteeismUsers\":\"\",\"leaveMessages\":\"\",\"signRate\":0,\"courseName\":\"课程4\",\"notSatisfied\":0,\"verySatisfied\":0,\"submitCount\":0,\"location\":\"\",\"teacherTitle\":\"\",\"clazzName\":\"班级2\",\"courseTime\":\"12月8日(星期五) 08:01-08:02\"}]"; ObjectMapper mapper=new ObjectMapper(); Map data =mapper.readValue(report,Map.class); List list=mapper.readValue(detail,List.class); String temp = "e:\\course-report.docx";...
只要请求的URL带有[]等特殊字符就有问题,只有中文是能成功的