2018年9月30日

浅谈JSON.parse()

摘要: parse 用于从一个字符串中解析出json 对象。 阅读全文

posted @ 2018-09-30 17:38 才小有 阅读(729) 评论(0) 推荐(0) 编辑

maven报错---Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin

摘要: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project se-service-productconsole: Comp 阅读全文

posted @ 2018-09-30 17:37 才小有 阅读(281) 评论(0) 推荐(0) 编辑

mybatis中传递参数时,会加上单引号

摘要: 工作中遇到的问题,后去查阅一些材料。 eg:sql ‘desc’ = #{desc} 参考:https://blog.csdn.net/zhongjh1/article/details/52840124,谢谢。 阅读全文

posted @ 2018-09-30 17:35 才小有 阅读(11084) 评论(0) 推荐(0) 编辑

对于double小数点后取两位

摘要: double d = 3.1415926;String result = String.format("%.2f", d);( %.2f %. 表示 小数点前任意位数 2 表示两位小数 格式后的结果为f 表示浮点型。) 阅读全文

posted @ 2018-09-30 17:29 才小有 阅读(4763) 评论(0) 推荐(0) 编辑

mybatis异常invalid comparison: java.util.Date and java.lang.String

摘要: 学习自:https://blog.csdn.net/wanghailong_qd/article/details/50673144,谢谢。 阅读全文

posted @ 2018-09-30 17:27 才小有 阅读(234) 评论(0) 推荐(0) 编辑

java.lang.NumberFormatException 错误及解决办法

摘要: 学习自:https://www.cnblogs.com/ios9/p/7435726.html,谢谢。 阅读全文

posted @ 2018-09-30 17:24 才小有 阅读(8705) 评论(0) 推荐(1) 编辑

2018年4月18日

笔记-java-获取某年某月的最后一天

摘要: public class LastDayOfMonth { /** * 获取某月的最后一天 * */ public static String getLastDayOfMonth(int year,int month) { Calendar cal = Calendar.getInstance(); //设... 阅读全文

posted @ 2018-04-18 14:28 才小有 阅读(16099) 评论(0) 推荐(1) 编辑

导航