会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
老屋上的仙人掌
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2022年4月6日
spring boot配置mongodb后总是连接到test库的问题
摘要: 多半是yml配置时缩进问题 正确写法示例 spring: data: mongodb: uri: mongodb://sunny:123456@127.0.0.1:27017/file
阅读全文
posted @ 2022-04-06 16:50 老屋上的仙人掌
阅读(257)
评论(0)
推荐(0)
2022年3月8日
BigDecimal数学计算
摘要: BigDecimal bignum1 = new BigDecimal("10"); BigDecimal bignum2 = new BigDecimal("5"); BigDecimal bignum3 = null; //加法 bignum3 = bignum1.add(bignum2); S
阅读全文
posted @ 2022-03-08 16:52 老屋上的仙人掌
阅读(82)
评论(0)
推荐(0)
2022年3月7日
java程序开启异步线程
摘要: Runnable runnable = ()-> { };new Thread(runnable).start();
阅读全文
posted @ 2022-03-07 09:05 老屋上的仙人掌
阅读(504)
评论(0)
推荐(0)
2022年3月3日
使用 @Value 注入配置的时候报错 Consider defining a bean of type 'java.lang.String' in your configuration.
摘要: 这里是因为,我在同一个class 里面,引用了另一个注解@AllArgsConstructor 后面我对比删除了@AllArgsConstructor,只是留下@Value.项目正常启动。 如何解决这个问题呢?其实很简单,将AllArgsConstructor改成RequiredArgsConstr
阅读全文
posted @ 2022-03-03 15:15 老屋上的仙人掌
阅读(1876)
评论(0)
推荐(0)
2022年2月16日
根据身份证号提取地域,性别,年龄,出生日期
摘要: SELECT case left(cardid,2) when '11' then '北京市' when '12' then '天津市' when '13' then '河北省' when '14' then '山西省' when '15' then '内蒙古自治区' when '21' then
阅读全文
posted @ 2022-02-16 14:45 老屋上的仙人掌
阅读(105)
评论(0)
推荐(0)
2022年1月24日
List去重
摘要: 1:去除重复数据 List<String> villageIds = villageIdAll.stream().distinct().collect(Collectors.toList()); List<Animal> animals = new ArrayList<>( Arrays.asLis
阅读全文
posted @ 2022-01-24 10:59 老屋上的仙人掌
阅读(46)
评论(0)
推荐(0)
2021年12月28日
linux常用命令
摘要: --给命令授权 chmod u+x *.sh
阅读全文
posted @ 2021-12-28 19:44 老屋上的仙人掌
阅读(22)
评论(0)
推荐(0)
2021年12月27日
mybatis注释的坑
摘要: mybatis注释需要用 <!-- -->其他注释均不会生效
阅读全文
posted @ 2021-12-27 17:31 老屋上的仙人掌
阅读(18)
评论(0)
推荐(0)
2021年12月22日
001型数据自动递增
摘要: DecimalFormat decimalFormat=new DecimalFormat("000");String code="XQ20190417000019";String codenew=code.substring(10, code.length());int i=Integer.par
阅读全文
posted @ 2021-12-22 17:22 老屋上的仙人掌
阅读(106)
评论(0)
推荐(0)
2021年11月25日
oracle,mysql日期和字符串的互转
摘要: 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-
阅读全文
posted @ 2021-11-25 10:10 老屋上的仙人掌
阅读(188)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告