![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
yangyh22
这个作者很懒,什么都没留下…
展开
-
Double 类型精度问题
public static void main(String[] args) { double d1 = 1.1D; double d2 = 2.2D; double d3 = d1+d2; System.out.println("d1+d2= "+d3); BigDecimal b1 = new BigDecima...原创 2018-08-08 17:06:27 · 3284 阅读 · 0 评论 -
自定义validate注解校验
/** * @author yangyh * @since 2018/10/18 */ @Target({METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER}) @Retention(RUNTIME) @Documented @Constraint(validatedBy = ListStringLength.ListStrin...原创 2018-10-18 14:06:36 · 1595 阅读 · 0 评论