摘要:
@JsonInclude背景: 1.使用@JsonInclude(JsonInclude.Include.NON_NULL)注解 可以返回制定格式的json数据 : 如果属性返回值为空,则不返回任何内容,这是由于 @JsonInclude(JsonInclude.Include.NON_NULL)这 阅读全文
posted @ 2022-12-23 14:01
码农公子的幸福生活
阅读(331)
评论(0)
推荐(0)
摘要:
/** * 将文件转为byte[] * * @param filePath 文件路径 * @return */ public static byte[] getBytes(String filePath) throws IOException { File file = new File(fileP 阅读全文
posted @ 2022-12-23 13:57
码农公子的幸福生活
阅读(883)
评论(0)
推荐(0)
浙公网安备 33010602011771号