摘要:
多半是yml配置时缩进问题 正确写法示例 spring: data: mongodb: uri: mongodb://sunny:123456@127.0.0.1:27017/file 阅读全文
摘要:
BigDecimal bignum1 = new BigDecimal("10"); BigDecimal bignum2 = new BigDecimal("5"); BigDecimal bignum3 = null; //加法 bignum3 = bignum1.add(bignum2); S 阅读全文
摘要:
Runnable runnable = ()-> { };new Thread(runnable).start(); 阅读全文
摘要:
这里是因为,我在同一个class 里面,引用了另一个注解@AllArgsConstructor 后面我对比删除了@AllArgsConstructor,只是留下@Value.项目正常启动。 如何解决这个问题呢?其实很简单,将AllArgsConstructor改成RequiredArgsConstr 阅读全文
摘要:
SELECT case left(cardid,2) when '11' then '北京市' when '12' then '天津市' when '13' then '河北省' when '14' then '山西省' when '15' then '内蒙古自治区' when '21' then 阅读全文
摘要:
1:去除重复数据 List<String> villageIds = villageIdAll.stream().distinct().collect(Collectors.toList()); List<Animal> animals = new ArrayList<>( Arrays.asLis 阅读全文
摘要:
--给命令授权 chmod u+x *.sh 阅读全文
摘要:
mybatis注释需要用 <!-- -->其他注释均不会生效 阅读全文
摘要:
DecimalFormat decimalFormat=new DecimalFormat("000");String code="XQ20190417000019";String codenew=code.substring(10, code.length());int i=Integer.par 阅读全文
摘要:
oracle select * from cunli_count-- where to_char(created_time,'yyyy-MM-dd HH24:MI') = '2021-11-25 09:18' where to_date('2021-11-25 09:18:26','yyyy-MM- 阅读全文