
工具类
foliage_yh
这个作者很懒,什么都没留下…
展开
-
groovy
groovygroovy学习资料:The Apache Groovy programming language - DocumentationGStringTemplateEngine (Groovy 4.0.0)模版中map的处理可参考:groovy-map.each{}_weixin_30687051的博客-优快云博客模版中list的处理可参考:https://blog.youkuaiyun.com/coderinchina/article/details/92081323原创 2022-02-08 14:56:53 · 1237 阅读 · 0 评论 -
进行时间格式化处理
String date="这里是时间的String形式";DateUtils.parse(date, DateUtils.YYYY_MM_DD_HH_MM_SS),原创 2021-08-24 20:53:16 · 93 阅读 · 0 评论 -
double小数处理
1.保留小数后两位23.4567DecimalFormat df = new DecimalFormat("0.00");df.format(input);23.462./** * 去掉后面的0 * * @param value * @return */public static String rvZeroAndDot(String value) { if (value.isEmpty()) { return null; } if (.原创 2021-08-17 19:59:32 · 200 阅读 · 0 评论 -
swagger
swagger方便生成spring restful风格的接口文档https://blog.youkuaiyun.com/HiBoyljw/article/details/81110553?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogComm原创 2020-09-04 10:38:56 · 115 阅读 · 1 评论 -
java实现二维码的生成
https://blog.youkuaiyun.com/jam_fanatic/article/details/82818857原创 2021-04-01 13:53:31 · 2417 阅读 · 6 评论 -
将list按行写入到txt文件中
public class SaveDataToFile { public static void main(String[] args) { List<String> sn=new ArrayList<String>(); sn.add("yanghuan"); sn.add("shuju"); String s="D://filedata/result.txt"; try{ .原创 2020-10-14 15:28:09 · 1698 阅读 · 0 评论 -
正则表达式
https://www.runoob.com/regexp/regexp-syntax.html原创 2020-07-15 10:27:28 · 93 阅读 · 0 评论 -
JsonUtils
import java.io.IOException;import java.util.Map;import org.apache.commons.lang3.StringUtils;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import com.fasterxml.jackson.core.JsonProcessingException;import com.fasterxml.jackson.databind.JavaT原创 2020-06-19 14:58:39 · 334 阅读 · 0 评论