摘要:
电脑死机后,eclipse编译代码出现【Path is not a working copy directory】错误,导致无法编译代码(生成class文件)和提交svn。 这个错误带有【svn:】的前缀,所以判断是svn目录混乱导致的,于是在项目目录右键的svn菜单中选择【Team】->【Refr 阅读全文
摘要:
前端请求进入后端控制器报错【Cannot deserialize instance of `java.lang.String` out of START_OBJECT token】,从错误信息上看是json解析错误,对比下前端请求发送内容和后端控制器接收参数即可发现问题。 前端发送内容: api_s 阅读全文
摘要:
封装方法: private static Long calcBetweenDays(String a, String b) { SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); // 自定义时间格式 Cal 阅读全文