• 博客园logo
  • 会员
  • 周边
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






yoyotoo

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2024年6月21日

在使用InputStream templateStream = this.getClass().getClassLoader().getResourceAsStream(path); 时的相关报错
摘要: 在使用 this.getClass().getClassLoader().getResourceAsStream() 读取项目目录路径下的文件需要注意 在pom.xml 文件中加入 <build> <plugins> <plugin> <groupId>org.springframework.boo 阅读全文
posted @ 2024-06-21 15:41 yoyotoo 阅读(46) 评论(0) 推荐(0)
 

2022年7月18日

基于Atomic原子类实现自定义格式生成唯一自增ID
摘要: 思想:Id内存加锁+DB落库 菜鸡实现篇: @Repositorypublic class IdMakerRepo extends Repo<IdMaker> { static Lock lock = new ReentrantLock(); static Cache<Object, Object> 阅读全文
posted @ 2022-07-18 09:43 yoyotoo 阅读(82) 评论(0) 推荐(0)
 

2022年7月11日

pageUtil
摘要: public class PageUtil { public static List startPage(List list, Integer pageNum, Integer pageSize) { if (list == null) { return null; } if (list.size( 阅读全文
posted @ 2022-07-11 17:52 yoyotoo 阅读(64) 评论(0) 推荐(0)
 

2021年10月26日

java 浅显的会议预约-没有测试过
摘要: package co.sh.controller;import com.alibaba.fastjson.JSON;import com.alibaba.fastjson.JSONObject;import com.google.gson.Gson;import org.apache.commons 阅读全文
posted @ 2021-10-26 11:36 yoyotoo 阅读(123) 评论(0) 推荐(0)
 

2020年12月28日

Postgresql 与 Spring的集成
摘要: pom.xml 中引入稳定Jar <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>42.2.5</version></dependency>bootatrap.ym 阅读全文
posted @ 2020-12-28 11:13 yoyotoo 阅读(1303) 评论(0) 推荐(0)
 

2020年11月23日

对象转JSON正则查找替换
摘要: package com.smil.gws.wbd.labor;import com.alibaba.fastjson.JSON;import com.alibaba.fastjson.JSONObject;import com.smil.gws.common.utils.GwsReportUtils 阅读全文
posted @ 2020-11-23 13:50 yoyotoo 阅读(338) 评论(0) 推荐(0)
 

2020年11月19日

Java 对象与JSONString的互相转换
摘要: MailDto mailDto = new MailDto();mailDto.setContent("2020-10-20");mailDto.setTitle("请赐予我力量吧 - 我是西瑞 - 哈哈");String s = JSON.toJSON(mailDto).toString();St 阅读全文
posted @ 2020-11-19 11:03 yoyotoo 阅读(657) 评论(0) 推荐(0)
 

2020年10月21日

excel 中涉及到金额显示0E-8的 可以使用以下语句来把excel导出修改为0
摘要: excel 中涉及到金额显示0E-8的 可以使用以下语句来把excel导出修改为0 @ExlColumn(value = "Total Amount", index = 9,dictionaries = {@Dictionary(name = "0E-8", value = "0"), @Dicti 阅读全文
posted @ 2020-10-21 14:11 yoyotoo 阅读(2552) 评论(0) 推荐(0)
 

2020年10月10日

Java 非正则方式校验数据
摘要: if (StringUtils.isNotEmpty(parameter) && StringUtils.isNotEmpty(unitCode) && unitCode.equals(BgdRulesEnum.DATE.getCode())){ if (!NumberUtils.isInteger 阅读全文
posted @ 2020-10-10 09:40 yoyotoo 阅读(166) 评论(0) 推荐(0)
 

2020年6月24日

泛型与反射的使用
摘要: package com.yonyou.cyxdms.retail.service.service.manufacturerorders;import com.yonyou.cyxdms.retail.service.entity.vo.salesorders.manufactuer.Test001; 阅读全文
posted @ 2020-06-24 15:47 yoyotoo 阅读(169) 评论(0) 推荐(0)
 
下一页