摘要:
在Java中,不管是String.split(),还是正则表达式,有一些特殊字符需要转义, 这些字符是: ( [ { / ^ - $ ¦ } ] ) ? * + . 转义方法为字符前面加上"\",这样在split、replaceAll时就不会报错了; 不过要注意,String.contains()方 阅读全文
posted @ 2022-02-25 14:09
xiexie0812
阅读(1161)
评论(0)
推荐(0)
摘要:
hibernate property出现 Field 'culture_title' doesn't have a default value 异常分析 在MySQL 5.0.2之后对数据输入进行了强制性的加严处理,并且保留了以前的MySQL对非法或不当值并不严厉的行为, MySQL默认是对数据进行 阅读全文
posted @ 2022-02-25 14:04
xiexie0812
阅读(742)
评论(0)
推荐(0)
摘要:
第一种 int num1 = 10; int num2 = 89; NumberFormat numberFormat = NumberFormat.getInstance(); // 设置精确到小数点后2位 numberFormat.setMaximumFractionDigits(2); // 阅读全文
posted @ 2022-02-25 14:02
xiexie0812
阅读(248)
评论(0)
推荐(0)
浙公网安备 33010602011771号