{"id":3140,"date":"2023-09-13T00:05:57","date_gmt":"2023-09-12T16:05:57","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=3140"},"modified":"2023-11-13T16:45:26","modified_gmt":"2023-11-13T08:45:26","slug":"java%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e6%96%87%e5%ad%97%e6%b0%b4%e5%8d%b0%e3%80%81%e5%9b%be%e7%89%87%e6%b0%b4%e5%8d%b0%e5%8a%9f%e8%83%bd%e5%ae%9e%e6%88%98","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/java\/java%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e6%96%87%e5%ad%97%e6%b0%b4%e5%8d%b0%e3%80%81%e5%9b%be%e7%89%87%e6%b0%b4%e5%8d%b0%e5%8a%9f%e8%83%bd%e5%ae%9e%e6%88%98\/","title":{"rendered":"Java\u5b9e\u73b0\u6dfb\u52a0\u6587\u5b57\u6c34\u5370\u3001\u56fe\u7247\u6c34\u5370\u529f\u80fd\u5b9e\u6218"},"content":{"rendered":"<div class=\"wxsyncmain\">\n<section style=\"font-size: 16px; padding-right: 10px; padding-left: 10px; word-break: break-word; text-align: left; line-height: 1.25; color: #2b2b2b; letter-spacing: 2px; background-image: linear-gradient(90deg, rgba(50, 0, 0, 0.04) 3%, rgba(0, 0, 0, 0) 3%), linear-gradient(360deg, rgba(50, 0, 0, 0.04) 3%, rgba(0, 0, 0, 0) 3%); background-size: 20px 20px; background-position: center center; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;\" data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" data-mpa-powered-by=\"yiban.io\">\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; margin-top: 10px; margin-bottom: 10px; font-size: 14px; word-spacing: 2px;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u672c\u6587\u4ecb\u7ecdjava\u5b9e\u73b0\u5728\u56fe\u7247\u4e0a\u52a0\u6587\u5b57\u6c34\u5370\u7684\u65b9\u6cd5\uff0c\u6c34\u5370\u53ef\u4ee5\u662f\u56fe\u7247\u6216\u8005\u6587\u5b57\uff0c\u64cd\u4f5c\u65b9\u4fbf\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; margin-top: 10px; margin-bottom: 10px; font-size: 14px; word-spacing: 2px;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">java\u5b9e\u73b0\u7ed9\u56fe\u7247\u6dfb\u52a0\u6c34\u5370\u5b9e\u73b0\u6b65\u9aa4\uff1a<\/p>\n<ul class=\"list-paddingleft-1\" style=\"margin-top: 8px; margin-bottom: 8px; padding-left: 25px; font-size: 15px; color: #595959; list-style-type: circle;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\n<li>\n<section style=\"margin-top: 5px; margin-bottom: 5px; line-height: 26px; font-size: 14px;\">\u83b7\u53d6\u539f\u56fe\u7247\u5bf9\u8c61\u4fe1\u606f\uff08\u672c\u5730\u56fe\u7247\u6216\u7f51\u7edc\u56fe\u7247\uff09<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px; margin-bottom: 5px; line-height: 26px; font-size: 14px;\">\u6dfb\u52a0\u6c34\u5370\uff08\u8bbe\u7f6e\u6c34\u5370\u989c\u8272\u3001\u5b57\u4f53\u3001\u5750\u6807\u7b49\uff09<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px; margin-bottom: 5px; line-height: 26px; font-size: 14px;\">\u5904\u7406\u8f93\u51fa\u76ee\u6807\u56fe\u7247<\/section>\n<\/li>\n<\/ul>\n<h2 style=\"margin-top: 30px; margin-bottom: 15px; font-weight: bold; color: black; font-size: 22px; border-bottom: 4px solid #40b8fa;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"display: flex; color: #40b8fa; font-size: 20px; margin-left: 25px;\">\u4e00\u3001java\u5b9e\u73b0\u7ed9\u56fe\u7247\u6dfb\u52a0\u6587\u5b57\u6c34\u5370<\/span><\/h2>\n<h3 style=\"color: black; font-size: 17px; font-weight: bold; text-align: center; margin-top: 20px; margin-bottom: 20px;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"border-bottom: 2px solid RGBA(79, 177, 249, .65); color: #2b2b2b; padding-bottom: 2px;\">1.\u83b7\u53d6\u539f\u56fe\u7247\u5bf9\u8c61\u4fe1\u606f<\/span><\/h3>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; margin-top: 10px; margin-bottom: 10px; font-size: 14px; word-spacing: 2px;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u7b2c\u4e00\u6b65\uff1a\u83b7\u53d6\u9700\u8981\u5904\u7406\u7684\u56fe\u7247<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; margin-top: 10px; margin-bottom: 10px; font-size: 14px; word-spacing: 2px;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u83b7\u53d6\u56fe\u7247\u7684\u65b9\u5f0f\uff0c\u901a\u5e38\u7531\u4e24\u79cd\uff1a<\/p>\n<ul class=\"list-paddingleft-1\" style=\"margin-top: 8px; margin-bottom: 8px; padding-left: 25px; font-size: 15px; color: #595959; list-style-type: circle;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\n<li>\n<section style=\"margin-top: 5px; margin-bottom: 5px; line-height: 26px; font-size: 14px;\">\u4e00\u79cd\u662f\u901a\u8fc7\u4e0b\u8f7d\u5230\u672c\u5730\uff0c\u4ece\u672c\u5730\u8bfb\u53d6\uff08\u672c\u5730\u56fe\u7247\uff09\uff1b<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px; margin-bottom: 5px; line-height: 26px; font-size: 14px;\">\u53e6\u5916\u4e00\u79cd\u662f\u901a\u8fc7\u7f51\u7edc\u5730\u5740\u8fdb\u884c\u8bfb\u53d6\uff08\u7f51\u7edc\u56fe\u7247\uff09<\/section>\n<\/li>\n<\/ul>\n<h4 style=\"margin-top: 30px; margin-bottom: 15px; font-weight: bold; color: black; font-size: 18px;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"height: 16px; line-height: 16px; font-size: 16px;\">1.1 \u8bfb\u53d6\u672c\u5730\u56fe\u7247<\/span><\/h4>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" style=\"border-radius: 6px; display: block; margin: 20px auto; object-fit: contain; box-shadow: #999999 2px 4px 7px;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000441130.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-ratio=\"0.6302652106084243\" data-type=\"png\" data-w=\"641\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"border-radius: 6px; display: block; margin: 20px auto; object-fit: contain; box-shadow: #999999 2px 4px 7px;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000441130.png\" data-ratio=\"0.6302652106084243\" data-type=\"png\" data-w=\"641\" \/><\/noscript><\/figure>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; margin-top: 10px; margin-bottom: 10px; font-size: 14px; word-spacing: 2px;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u901a\u8fc7\u4ee3\u7801\u5b9e\u73b0\u8bfb\u53d6\u672c\u5730\u76ee\u5f55\uff08F:image1.png\uff09\u4e0b\u56fe\u7247\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<div>packagecom.example.listdemo.utils;<br \/>\nimportjavax.imageio.ImageIO;<br \/>\nimportjava.awt.*;<br \/>\nimportjava.awt.image.BufferedImage;<br \/>\nimportjava.io.File;<br \/>\nimportjava.io.FileOutputStream;<br \/>\nimportjava.io.IOException;<\/p>\n<p>\/***\u56fe\u7247\u6dfb\u52a0\u6c34\u5370*@authorqzz*\/<br \/>\npublic class ImageUtils {<br \/>\npublic static void main(String[] args) throws IOException {<br \/>\n\/\/\u8bfb\u53d6\u539f\u56fe\u7247\u4fe1\u606f\u5f97\u5230\u6587\u4ef6\uff08\u672c\u5730\u56fe\u7247\uff09<br \/>\nFile srcImgFile = newFile(\"F:\/image\/1.png\");<br \/>\n\/\/ \u5c06\u6587\u4ef6\u5bf9\u8c61\u8f6c\u5316\u4e3a\u56fe\u7247\u5bf9\u8c61<br \/>\nImage srcImg = ImageIO.read(srcImgFile);<br \/>\n\/\/ \u83b7\u53d6\u56fe\u7247\u7684\u5bbd<br \/>\nint srcImgWidth = srcImg.getWidth(null);<br \/>\n\/\/ \u83b7\u53d6\u56fe\u7247\u7684\u9ad8<br \/>\nint srcImgHeight = srcImg.getHeight(null);<br \/>\nSystem.out.println(\"\u56fe\u7247\u7684\u5bbd:\" + srcImgWidth);<br \/>\nSystem.out.println(\"\u56fe\u7247\u7684\u9ad8:\" + srcImgHeight);<br \/>\n\/\/ \u521b\u5efa\u4e00\u4e2aURL\u5bf9\u8c61,\u83b7\u53d6\u7f51\u7edc\u56fe\u7247\u7684\u5730\u5740\u4fe1\u606f\uff08\u7f51\u7edc\u56fe\u7247\uff09\/\/<br \/>\nURL url = newURL(\"https:\/\/pngimg.com\/distr\/img\/ukraine.png\");<br \/>\n\/\/ \/\/\u5c06URL\u5bf9\u8c61\u8f93\u5165\u6d41\u8f6c\u5316\u4e3a\u56fe\u7247\u5bf9\u8c61(url.openStream()\u65b9\u6cd5\uff0c\u83b7\u5f97\u4e00\u4e2a\u8f93\u5165\u6d41)<br \/>\nImage srcImg = ImageIO.read(url.openStream());\/\/\/\/\u83b7\u53d6\u56fe\u7247\u7684\u5bbd<br \/>\nint srcImgWidth = srcImg.getWidth(null);\/\/\/\/\u83b7\u53d6\u56fe\u7247\u7684\u9ad8<br \/>\nint srcImgHeight = srcImg.getHeight(null);<br \/>\nSystem.out.println(\"\u56fe\u7247\u7684\u5bbd:\" + srcImgWidth);<br \/>\nSystem.out.println(\"\u56fe\u7247\u7684\u9ad8:\" + srcImgHeight);<br \/>\nBufferedImage bufImg = new BufferedImage(srcImgWidth, srcImgHeight, BufferedImage.TYPE_INT_RGB);<br \/>\n\/\/ \u52a0\u6c34\u5370\/\/\u521b\u5efa\u753b\u7b14<br \/>\nGraphics2D g = bufImg.createGraphics();<br \/>\n\u7ed8\u5236\u539f\u59cb\u56fe\u7247g.drawImage(srcImg, 0, 0, srcImgWidth, srcImgHeight, null);<br \/>\n\/\/ -------------------------\u6587\u5b57\u6c34\u5370start----------------------------\/\/<br \/>\n\/\/ \u6839\u636e\u56fe\u7247\u7684\u80cc\u666f\u8bbe\u7f6e\u6c34\u5370\u989c\u8272<br \/>\ng.setColor(newColor(255, 255, 255, 128));\/\/<br \/>\n\/\/ \u8bbe\u7f6e\u5b57\u4f53\u753b\u7b14\u5b57\u4f53\u6837\u5f0f\u4e3a\u5fae\u8f6f\u96c5\u9ed1\uff0c\u52a0\u7c97\uff0c\u6587\u5b57\u5927\u5c0f\u4e3a60pt<br \/>\ng.setFont(newFont(\"\u5fae\u8f6f\u96c5\u9ed1\", Font.BOLD, 60));<br \/>\nString waterMarkContent = \"\u56fe\u7247\u6765\u6e90\uff1ahttps:\/\/image.baidu.com\/\";<br \/>\n\/\/\u8bbe\u7f6e\u6c34\u5370\u7684\u5750\u6807(\u4e3a\u539f\u56fe\u7247\u4e2d\u95f4\u4f4d\u7f6e)<br \/>\nint x = (srcImgWidth - getWatermarkLength(waterMarkContent, g)) \/ 2;<br \/>\nint y = srcImgHeight \/ 2;<br \/>\n\/\/ \u753b\u51fa\u6c34\u5370\u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u6c34\u5370\u5185\u5bb9\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662fx\u8f74\u5750\u6807\uff0c\u7b2c\u4e09\u4e2a\u53c2\u6570\u662fy\u8f74\u5750\u6807<br \/>\ng.drawString(waterMarkContent, x, y);<br \/>\ng.dispose();<br \/>\n\/\/ -------------------------\u6587\u5b57\u6c34\u5370end----------------------------\/\/-------------------------\u56fe\u7247\u6c34\u5370start----------------------------<br \/>\n\/\/ \u6c34\u5370\u6587\u4ef6<br \/>\n\/\/ String waterMarkImage=\"F:\/image\/s.png\";<br \/>\nImagesrcWaterMark = ImageIO.read(newFile(waterMarkImage));<br \/>\n\/\/ \u83b7\u53d6\u6c34\u5370\u56fe\u7247\u7684\u5bbd\u5ea6<br \/>\nintwidthWaterMark = srcWaterMark.getWidth(null);<br \/>\n\/\/ \u83b7\u53d6\u6c34\u5370\u56fe\u7247\u7684\u9ad8\u5ea6<br \/>\nintheightWaterMark = srcWaterMark.getHeight(null);<br \/>\n\/\/ \u8bbe\u7f6e alpha \u900f\u660e\u5ea6\uff1aalpha \u5fc5\u987b\u662f\u8303\u56f4[0.0, 1.0]\u4e4b\u5185\uff08\u5305\u542b\u8fb9\u754c\u503c\uff09\u7684\u4e00\u4e2a\u6d6e\u70b9\u6570\u5b57<br \/>\ng.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_ATOP, 0.9f));<br \/>\n\/\/ \u7ed8\u5236\u6c34\u5370\u56fe\u7247\u5750\u6807\u4e3a\u4e2d\u95f4\u4f4d\u7f6e<br \/>\ng.drawImage(srcWaterMark, (srcImgWidth - widthWaterMark) \/ 2, (srcImgHeight - heightWaterMark) \/ 2, widthWaterMark, heightWaterMark, null);<br \/>\n\/\/ \u6c34\u5370\u6587\u4ef6\u7ed3\u675f<br \/>\ng.dispose();<br \/>\n\/\/ -------------------------\u56fe\u7247\u6c34\u5370end----------------------------\/\/\u5f85\u5b58\u50a8\u7684\u5730\u5740<br \/>\nString tarImgPath = \"F:\/image\/t.png\";<br \/>\n\/\/ \u8f93\u51fa\u56fe\u7247<br \/>\nFileOutputStreamoutImgStream = newFileOutputStream(tarImgPath);<br \/>\nImageIO.write(bufImg, \"png\", outImgStream);<br \/>\nSystem.out.println(\"\u6dfb\u52a0\u6c34\u5370\u5b8c\u6210\");<br \/>\noutImgStream.flush();<br \/>\noutImgStream.close();<br \/>\n}<\/p>\n<p>\/\/ \/***\u83b7\u53d6\u6c34\u5370\u6587\u5b57\u7684\u957f\u5ea6*@paramwaterMarkContent<br \/>\n\/\/ *@paramg<br \/>\n\/\/ *@return*\/<br \/>\npublic static int getWatermarkLength(String waterMarkContent, Graphics2D g) {<br \/>\nreturn g.getFontMetrics(g.getFont()).charsWidth(waterMarkContent.toCharArray(), 0, waterMarkContent.length());<br \/>\n}<br \/>\n}<br \/>\n}<\/p><\/div>\n<h3 style=\"color: black; font-size: 17px; font-weight: bold; text-align: center; margin-top: 20px; margin-bottom: 20px;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"border-bottom: 2px solid RGBA(79, 177, 249, .65); color: #2b2b2b; padding-bottom: 2px;\">3.\u4ee3\u7801\u6267\u884c\u6548\u679c<\/span><\/h3>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" style=\"border-radius: 6px; display: block; margin: 20px auto; object-fit: contain; box-shadow: #999999 2px 4px 7px;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000505491.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-ratio=\"0.33240740740740743\" data-type=\"png\" data-w=\"1080\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"border-radius: 6px; display: block; margin: 20px auto; object-fit: contain; box-shadow: #999999 2px 4px 7px;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000505491.png\" data-ratio=\"0.33240740740740743\" data-type=\"png\" data-w=\"1080\" \/><\/noscript><\/figure>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; margin-top: 10px; margin-bottom: 10px; font-size: 14px; word-spacing: 2px;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">t.png\u56fe\u7247\u6587\u4ef6\u4e2d \u542b\u6709 \u6c34\u5370\u56fe\u7247\uff0c\u8bf4\u660e \u56fe\u7247\u6c34\u5370\u6dfb\u52a0\u6210\u529f\uff01<\/p>\n<\/section>\n<section style=\"margin-bottom: 0px; padding-right: 10px; padding-left: 10px; outline: 0px; white-space: normal; color: black; font-size: 16px; letter-spacing: 0px; text-align: left; background-color: #ffffff; line-height: 1.6; word-break: break-word; font-family: PingFangSC-Light;\" data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\">\n<h3 style=\"outline: 0px; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: 0.544px; text-align: right;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><em style=\"outline: 0px; color: #888888; font-size: 12px; letter-spacing: 0.5px;\">\u6765\u6e90\uff1ablog.csdn.net\/qq_26383975\/<\/em><\/h3>\n<h3 style=\"outline: 0px; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: 0.544px; text-align: right;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><em style=\"outline: 0px; color: #888888; font-size: 12px; letter-spacing: 0.5px;\">article\/details\/125996277<\/em><\/h3>\n<h3 style=\"outline: 0px; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: 0.544px; text-align: right;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><\/h3>\n<p style=\"outline: 0px;\">\n<\/section>\n<section style=\"margin-bottom: 0px; outline: 0px; letter-spacing: 0.544px; white-space: normal; color: #000000; font-size: 16px; font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, Arial, sans-serif; text-align: center; widows: 1; caret-color: #3c3c3c; background-color: #ffffff;\"><span style=\"outline: 0px; font-size: 20px; color: #ff0000;\"><strong style=\"outline: 0px;\">\u540e\u7aef\u4e13\u5c5e\u6280\u672f\u7fa4<\/strong><\/span><\/section>\n<p style=\"margin-bottom: 0px; padding-top: 8px; padding-bottom: 8px; outline: 0px; white-space: normal; color: #000000; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: 16px; letter-spacing: normal; text-align: center; widows: 1; caret-color: #3c3c3c; background-color: #ffffff; line-height: 26px; visibility: visible;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u6784\u5efa\u9ad8\u8d28\u91cf\u7684\u6280\u672f\u4ea4\u6d41\u793e\u7fa4\uff0c\u6b22\u8fce\u4ece\u4e8b\u7f16\u7a0b\u5f00\u53d1\u3001\u6280\u672f\u62db\u8058HR\u8fdb\u7fa4\uff0c\u4e5f\u6b22\u8fce\u5927\u5bb6\u5206\u4eab\u81ea\u5df1\u516c\u53f8\u7684\u5185\u63a8\u4fe1\u606f\uff0c\u76f8\u4e92\u5e2e\u52a9\uff0c\u4e00\u8d77\u8fdb\u6b65\uff01<\/p>\n<blockquote style=\"margin-top: 20px; margin-bottom: 20px; padding: 10px 10px 10px 1em; outline: 0px; border-left-width: 2px; border-left-color: #888888; color: #777777; font-size: 0.9em; white-space: normal; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; letter-spacing: normal; text-align: left; widows: 1; caret-color: #3c3c3c; border-top: none; border-bottom: none; overflow: auto; background: rgba(0, 0, 0, 0.05); border-right: 2px solid #888888; visibility: visible;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\n<p style=\"padding-top: 8px; padding-bottom: 8px; outline: 0px; font-size: 16px; text-align: justify; color: black; line-height: 26px; visibility: visible;\">\u6587\u660e\u53d1\u8a00\uff0c\u4ee5<code style=\"margin-right: 2px; margin-left: 2px; padding: 2px 4px; outline: 0px; font-size: 14px; border-radius: 4px; background-color: rgba(27, 31, 35, 0.05); font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; color: #009688; visibility: visible;\">\u4ea4\u6d41\u6280\u672f<\/code>\u3001<code style=\"margin-right: 2px; margin-left: 2px; padding: 2px 4px; outline: 0px; font-size: 14px; border-radius: 4px; background-color: rgba(27, 31, 35, 0.05); font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; color: #009688; visibility: visible;\">\u804c\u4f4d\u5185\u63a8<\/code>\u3001<code style=\"margin-right: 2px; margin-left: 2px; padding: 2px 4px; outline: 0px; font-size: 14px; border-radius: 4px; background-color: rgba(27, 31, 35, 0.05); font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; color: #009688; visibility: visible;\">\u884c\u4e1a\u63a2\u8ba8<\/code>\u4e3a\u4e3b<\/p>\n<\/blockquote>\n<p style=\"margin-bottom: 0px; padding-top: 8px; padding-bottom: 8px; outline: 0px; white-space: normal; color: #000000; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: 16px; letter-spacing: normal; text-align: center; widows: 1; caret-color: #3c3c3c; background-color: #ffffff; line-height: 26px; visibility: visible;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5e7f\u544a\u4eba\u58eb\u52ff\u5165\uff0c\u5207\u52ff\u8f7b\u4fe1\u79c1\u804a\uff0c\u9632\u6b62\u88ab\u9a97<\/p>\n<p style=\"outline: 0px; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: 0.544px; white-space: normal; background-color: #ffffff; text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" style=\"outline: 0px; visibility: visible !important; width: 191px !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000507189.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-galleryid=\"\" data-ratio=\"1.0212201591511936\" data-s=\"300,640\" data-type=\"png\" data-w=\"377\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"outline: 0px; visibility: visible !important; width: 191px !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000507189.png\" data-galleryid=\"\" data-ratio=\"1.0212201591511936\" data-s=\"300,640\" data-type=\"png\" data-w=\"377\" \/><\/noscript><\/p>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; white-space: normal; color: #000000; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: 16px; letter-spacing: normal; text-align: left; widows: 1; caret-color: #3c3c3c; background-color: #ffffff; display: flex; flex-direction: column; justify-content: center; align-items: center; visibility: visible;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><figcaption style=\"margin-top: 5px; outline: 0px; text-align: center; color: #888888; font-size: 14px; visibility: visible;\">\u52a0\u6211\u597d\u53cb\uff0c\u62c9\u4f60\u8fdb\u7fa4<\/figcaption><\/figure>\n<p style=\"display: none;\">\n<blockquote><p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7: Java\u7b14\u8bb0\u867e<\/p><\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4ecb\u7ecdjava\u5b9e\u73b0\u5728\u56fe\u7247\u4e0a\u52a0\u6587\u5b57\u6c34\u5370\u7684\u65b9\u6cd5\uff0c\u6c34\u5370\u53ef\u4ee5\u662f\u56fe\u7247\u6216\u8005\u6587\u5b57\uff0c\u64cd\u4f5c\u65b9\u4fbf\u3002 java\u5b9e\u73b0\u7ed9\u56fe\u7247\u6dfb\u52a0\u6c34\u5370\u5b9e\u73b0\u6b65\u9aa4\uff1a \u83b7\u53d6\u539f\u56fe\u7247 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":3127,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[2,6,7],"tags":[],"class_list":["post-3140","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","category-spring","category-spring-boot"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000440395-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000441130.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000440395-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000440395.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000441130.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000440395-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000440395.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000440395.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000441130.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000441130.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000505491.png","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000505491.png","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000507189.png","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/09\/20230913000507189.png","id":"image5"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Java","post_date":"2023-09-12","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":861,"next_post_id":3539,"next_post_title":"\u4e00\u6b3e\u5f00\u6e90\u7684\u5206\u5e03\u5f0f\u722c\u866b\u7ba1\u7406\u5e73\u53f0\uff0c\u652f\u6301\u591a\u79cd\u8bed\u8a00\u548c\u6846\u67b6","previous_post_id":3087,"previous_post_title":"\u4e0d\u60f3\u5f15\u5165MQ\uff1f\u4e0d\u59a8\u8bd5\u8bd5 Debezium","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/3140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=3140"}],"version-history":[{"count":2,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/3140\/revisions"}],"predecessor-version":[{"id":3641,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/3140\/revisions\/3641"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/3127"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=3140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=3140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=3140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}