记录下来一些常用的,或用过的,会持续更新 …
XML、JSON 字符串互转
2021-01-29 10:21:54
有时候,我们需要“xmlStr -> jsonStr -> xmlStr”
1)、导入依赖
1 | <!-- https://mvnrepository.com/artifact/cn.hutool/hutool-all --> |
2)、代码示例
1 | import cn.hutool.json.JSONObject; |
Ftp
2021-01-21 16:01
1)、导入依赖(hutool 封装的 ftp 工具依赖 commons-net)
1 | <!-- https://mvnrepository.com/artifact/commons-net/commons-net --> |
2)、代码示例
1 | import cn.hutool.core.io.IoUtil; |
ExceptionUtil
2022-01-22 21:45:08
1 | package com.alibaba.nacos.common.utils; |