摘要: Mono mono1 = (Mono) createUnsafeWebClient().post() .uri(path) .contentType(MediaType.MULTIPART_FORM_DATA) .header("Accept", "text/event-stream") .body 阅读全文
posted @ 2025-05-19 10:22 筱老邪 阅读(3) 评论(0) 推荐(0)
摘要: 方法一: response.setContentType("image/png");// try {// // 步骤 1:创建 URL 对象// URL url = new URL(imageUrl);//// // 步骤 2:打开连接// HttpURLConnection connection 阅读全文
posted @ 2025-05-19 10:21 筱老邪 阅读(29) 评论(0) 推荐(0)
摘要: public static String toBase64String(String value) throws UnsupportedEncodingException { if (value == null || value.isEmpty()) { return ""; } byte[] by 阅读全文
posted @ 2025-05-19 10:16 筱老邪 阅读(9) 评论(0) 推荐(0)