{"id":221,"date":"2023-05-25T05:55:22","date_gmt":"2023-05-24T21:55:22","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/index.php\/uncategorized\/ea06fdc815\/"},"modified":"2023-05-25T21:22:58","modified_gmt":"2023-05-25T13:22:58","slug":"ea06fdc815","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/ea06fdc815\/","title":{"rendered":"\u4e00\u8d77\u6765\u5b66kafka\u4e4b\u6574\u5408SpringBoot\u57fa\u672c\u4f7f\u7528"},"content":{"rendered":"<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"font-size: 16px;color: black;padding: 0px 10px;word-spacing: 0px;word-break: break-word;overflow-wrap: break-word;text-align: left;line-height: 1.25;letter-spacing: 2px;background-image: linear-gradient(90deg, rgba(50, 0, 0, 0.05) 3%, rgba(0, 0, 0, 0) 3%), linear-gradient(360deg, rgba(50, 0, 0, 0.05) 3%, rgba(0, 0, 0, 0) 3%);background-size: 20px 20px;background-position: center center;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;\">\n<h1 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;font-weight: bold;color: black;font-size: 25px;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;font-weight: bold;color: #773098;\">\u4e00\u8d77\u6765\u5b66kafka\u4e4b\u6574\u5408SpringBoot\u57fa\u672c\u4f7f\u7528<\/span><\/h1>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;font-weight: bold;color: black;font-size: 22px;text-align: left;margin: 20px 10px 0px 0px;\"><span style=\"display: none;\"><\/span><span style=\"font-size: 18px;font-weight: bold;display: inline-block;padding-left: 10px;border-left: 5px solid #916dd5;\">\u524d\u8a00<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u76ee\u524d\u6b63\u5728\u51fa\u4e00\u4e2a<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">Kafka\u4e13\u9898<\/code>\u7cfb\u5217\u6559\u7a0b, \u7bc7\u5e45\u4f1a\u8f83\u591a, \u559c\u6b22\u7684\u8bdd\uff0c\u7ed9\u4e2a\u5173\u6ce8\u2764\ufe0f ~<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u672c\u8282\u7ed9\u5927\u5bb6\u8bb2\u4e00\u4e0b<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">Kafka\u5982\u4f55\u6574\u5408SpringBoot<\/code>\u4ee5\u53ca\u5b83\u7684\u57fa\u672c\u4f7f\u7528~<\/p>\n<section><mp-common-profile class=\"js_uneditable custom_select_card mp_profile_iframe\" data-pluginname=\"mpprofile\" data-weui-theme=\"light\" data-id=\"MzU4NDcxOTM3OQ==\" data-headimg=\"http:\/\/mmbiz.qpic.cn\/mmbiz_png\/dDva6rRBQ2CdNqsbX0ZOtVheUHGoTtib0icQ7L0cw9gRuTRGBLBN8vicep6dA8aLicWomyRCSTIZQx51icvaYhg6EHg\/0?wx_fmt=png\" data-nickname=\"\u7a0b\u5e8f\u5458\u76ae\u5361\u79cb\" data-alias=\"weqdnj\" data-signature=\"\u4e00\u4e2a\u559c\u6b22\u5199\u6559\u7a0b\u7684Java\u535a\u4e3b~\" data-from=\"0\" data-is_biz_ban=\"0\"><\/mp-common-profile><\/section>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u597d\u4e86, \u5e9f\u8bdd\u4e0d\u591a\u8bf4\u76f4\u63a5\u5f00\u6574\u5427~<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;font-weight: bold;color: black;font-size: 22px;text-align: left;margin: 20px 10px 0px 0px;\"><span style=\"display: none;\"><\/span><span style=\"font-size: 18px;font-weight: bold;display: inline-block;padding-left: 10px;border-left: 5px solid #916dd5;\">\u9879\u76ee\u642d\u5efa<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u540c\u6837\u7684\uff0c\u9700\u8981\u6211\u4eec\u642d\u5efa\u4e00\u4e2a<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">maven<\/code>\u5de5\u7a0b\uff0c\u6574\u5408\u975e\u5e38\u7684\u7b80\u5355\uff0c\u9700\u8981\u7528\u5230:<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: rgb(40, 44, 52) url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/nibxxlib1VaPcFrt9kcuWJhMvFHukZf6ib3qIOjibUnI99BOJX0T1TEzHhFNhF51dOp6ZzyeMxWzkQZrMoHF1w09sJWQKuibDcOcT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat;height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\"><span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span>org.springframework.kafka<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span>spring-kafka<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span><br  \/><span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span><br  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u6765\u4e00\u8d77\u770b\u4e0b\u5b8c\u6574\u7684<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">pom.xml<\/code>:<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: rgb(40, 44, 52) url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/nibxxlib1VaPcFrt9kcuWJhMvFHukZf6ib3qIOjibUnI99BOJX0T1TEzHhFNhF51dOp6ZzyeMxWzkQZrMoHF1w09sJWQKuibDcOcT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat;height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\"><span style=\"color: #61aeee;line-height: 26px;\">&lt;?xml&nbsp;version=\"1.0\"&nbsp;encoding=\"UTF-8\"?&gt;<\/span><br  \/><span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">project<\/span>&nbsp;<span style=\"color: #d19a66;line-height: 26px;\">xmlns<\/span>=<span style=\"color: #98c379;line-height: 26px;\">\"http:\/\/maven.apache.org\/POM\/4.0.0\"<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #d19a66;line-height: 26px;\">xmlns:xsi<\/span>=<span style=\"color: #98c379;line-height: 26px;\">\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #d19a66;line-height: 26px;\">xsi:schemaLocation<\/span>=<span style=\"color: #98c379;line-height: 26px;\">\"http:\/\/maven.apache.org\/POM\/4.0.0&nbsp;http:\/\/maven.apache.org\/xsd\/maven-4.0.0.xsd\"<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">modelVersion<\/span>&gt;<\/span>4.0.0<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">modelVersion<\/span>&gt;<\/span><br  \/><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span>org.example<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span>springboot-kafka-all<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">version<\/span>&gt;<\/span>1.0-SNAPSHOT<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">version<\/span>&gt;<\/span><br  \/><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">properties<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">java.version<\/span>&gt;<\/span>1.8<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">java.version<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">properties<\/span>&gt;<\/span><br  \/><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">parent<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span>org.springframework.boot<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span>spring-boot-starter-parent<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">version<\/span>&gt;<\/span>2.1.3.RELEASE<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">version<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">parent<\/span>&gt;<\/span><br  \/><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">dependencies<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">&lt;!--web--&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span>org.springframework.boot<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span>spring-boot-starter-web<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">&lt;!--test--&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span>org.springframework.boot<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span>spring-boot-starter-test<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">&lt;!--&nbsp;kafka--&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span>org.springframework.kafka<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span>spring-kafka<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">&lt;!--Hutool\u4f9d\u8d56--&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span>cn.hutool<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span>hutool-all<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">version<\/span>&gt;<\/span>5.8.4<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">version<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">&lt;!--fast-json--&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span>com.alibaba<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span>fastjson<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">version<\/span>&gt;<\/span>1.2.58<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">version<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span><br  \/><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span>&nbsp;org.slf4j&nbsp;<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span>&nbsp;slf4j-api&nbsp;<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">version<\/span>&gt;<\/span>&nbsp;1.6.4&nbsp;<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">version<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span>org.slf4j<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span>slf4j-simple<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">version<\/span>&gt;<\/span>1.7.25<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">version<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">scope<\/span>&gt;<\/span>compile<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">scope<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span>org.projectlombok<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span>lombok<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">dependencies<\/span>&gt;<\/span><br  \/><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">build<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">plugins<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">plugin<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span>org.springframework.boot<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span>spring-boot-maven-plugin<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">version<\/span>&gt;<\/span>2.1.3.RELEASE<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">version<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">plugin<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">plugins<\/span>&gt;<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">build<\/span>&gt;<\/span><br  \/><br  \/><span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">project<\/span>&gt;<\/span><br  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u914d\u7f6e\u4e5f\u5f88\u7b80\u5355 <code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">application.yml<\/code><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: rgb(40, 44, 52) url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/nibxxlib1VaPcFrt9kcuWJhMvFHukZf6ib3qIOjibUnI99BOJX0T1TEzHhFNhF51dOp6ZzyeMxWzkQZrMoHF1w09sJWQKuibDcOcT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat;height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\"><span style=\"color: #d19a66;line-height: 26px;\">server:<\/span><br  \/>&nbsp;&nbsp;<span style=\"color: #d19a66;line-height: 26px;\">port:<\/span>&nbsp;<span style=\"color: #d19a66;line-height: 26px;\">8081<\/span><br  \/><br  \/><span style=\"color: #d19a66;line-height: 26px;\">spring:<\/span><br  \/>&nbsp;&nbsp;<span style=\"color: #d19a66;line-height: 26px;\">kafka:<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #d19a66;line-height: 26px;\">producer:<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #d19a66;line-height: 26px;\">bootstrap-servers:<\/span>&nbsp;<span style=\"color: #d19a66;line-height: 26px;\">127.0<\/span><span style=\"color: #d19a66;line-height: 26px;\">.0<\/span><span style=\"color: #d19a66;line-height: 26px;\">.1<\/span><span style=\"color: #98c379;line-height: 26px;\">:9092<\/span><br  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u7136\u540e\u65b0\u5efa\u4e00\u4e2a\u542f\u52a8\u7c7b\uff0c\u770b\u4e0b\u63a7\u5236\u53f0\u662f\u5426\u6210\u529f\u94fe\u63a5\u4e86<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">Kafka<\/code>,\u5728\u542f\u52a8\u4e4b\u524d\u522b\u5fd8\u4e86\u5f00\u542f\u6211\u4eec\u7684<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">Kafka\u96c6\u7fa4<\/code>\u54e6~<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;font-weight: bold;color: black;font-size: 22px;text-align: left;margin: 20px 10px 0px 0px;\"><span style=\"display: none;\"><\/span><span style=\"font-size: 18px;font-weight: bold;display: inline-block;padding-left: 10px;border-left: 5px solid #916dd5;\">\u57fa\u672c\u4f7f\u7528<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u5148\u4ece\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff0c\u6765\u5feb\u901f\u4f53\u9a8c\u4e00\u4e0b<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">Kafka<\/code>,\u65b0\u5efa<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">HelloController<\/code><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: rgb(40, 44, 52) url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/nibxxlib1VaPcFrt9kcuWJhMvFHukZf6ib3qIOjibUnI99BOJX0T1TEzHhFNhF51dOp6ZzyeMxWzkQZrMoHF1w09sJWQKuibDcOcT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat;height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\"><span style=\"color: #61aeee;line-height: 26px;\">@Slf<\/span>4j<br  \/><span style=\"color: #61aeee;line-height: 26px;\">@RestController<\/span><br  \/><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">class<\/span>&nbsp;<span style=\"color: #e6c07b;line-height: 26px;\">HelloController<\/span>&nbsp;<\/span>{<br  \/><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">private<\/span>&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">static<\/span>&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">final<\/span>&nbsp;String&nbsp;topic&nbsp;=&nbsp;<span style=\"color: #98c379;line-height: 26px;\">\"test\"<\/span>;<br  \/><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">@Autowired<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">private<\/span>&nbsp;KafkaTemplate&lt;Object,&nbsp;Object&gt;&nbsp;kafkaTemplate;<br  \/><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;\u63a5\u6536\u6d88\u606f<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">@KafkaListener<\/span>(id&nbsp;=&nbsp;<span style=\"color: #98c379;line-height: 26px;\">\"helloGroup\"<\/span>,&nbsp;topics&nbsp;=&nbsp;topic)<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">void<\/span>&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">listen<\/span><span style=\"line-height: 26px;\">(String&nbsp;msg)<\/span>&nbsp;<\/span>{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"color: #98c379;line-height: 26px;\">\"hello&nbsp;receive&nbsp;value:&nbsp;{}\"<\/span>&nbsp;,&nbsp;msg);<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;hello&nbsp;receive&nbsp;value:&nbsp;hello&nbsp;kafka<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br  \/><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">@GetMapping<\/span>(<span style=\"color: #98c379;line-height: 26px;\">\"\/hello\"<\/span>)<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;String&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">hello<\/span><span style=\"line-height: 26px;\">()<\/span>&nbsp;<\/span>{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;\u53d1\u9001\u6d88\u606f<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;kafkaTemplate.send(topic,&nbsp;<span style=\"color: #98c379;line-height: 26px;\">\"hello&nbsp;kafka\"<\/span>);<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">return<\/span>&nbsp;<span style=\"color: #98c379;line-height: 26px;\">\"hello\"<\/span>;<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br  \/>}<br  \/><br  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u6211\u4eec\u901a\u8fc7<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">KafkaTemplate<\/code>\u8fdb\u884c\u6d88\u606f\u7684\u53d1\u9001, \u901a\u8fc7<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">@KafkaListener<\/code>\u8fdb\u884c\u6d88\u606f\u7684\u6d88\u8d39,\u6211\u4eec\u53ef\u4ee5\u6307\u5b9a\u6d88\u8d39\u8005<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">ID<\/code>\u4ee5\u53ca\u76d1\u542c\u7684<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">topic<\/code>\uff0c\u8bf7\u6c42<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">localhost:8081\/hello<\/code>\u89c2\u5bdf\u63a7\u5236\u53f0\u7684\u53d8\u5316\u3002\u8bf7\u6c42\u540e\uff0c\u53d1\u73b0\u6d88\u606f\u53d1\u9001\u548c\u63a5\u6536\u7684\u975e\u5e38\u5feb,\u6211\u4eec\u4e5f\u53ef\u4ee5\u89c2\u5bdf<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">UI<\/code>\u540e\u53f0\u7684\u6d88\u606f\u8be6\u60c5,\u540c\u6b65\u5bf9\u6bd4<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;color: black;font-size: 16px;font-weight: bold;text-align: center;\"><span style=\"display: none;\"><\/span><span style=\"border-bottom: 2px solid #d89cf6;\">topic\u521b\u5efa<\/span><span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u4e4b\u524d\u6211\u4eec\u7684<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">topic<\/code>\u662f\u5728<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">UI<\/code>\u540e\u53f0\u521b\u5efa\u7684\uff0c\u90a3\u4e48\u5728<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">SpringBoot<\/code>\u4e2d\u5982\u4f55\u521b\u5efa\u5462? \u4e0b\u9762\u6211\u4eec\u8bd5\u7740\u53d1\u9001\u4e00\u4e2a\u4e0d\u5b58\u5728\u7684<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">topic<\/code><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: rgb(40, 44, 52) url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/nibxxlib1VaPcFrt9kcuWJhMvFHukZf6ib3qIOjibUnI99BOJX0T1TEzHhFNhF51dOp6ZzyeMxWzkQZrMoHF1w09sJWQKuibDcOcT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat;height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\">&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;\u5f53topic\u4e0d\u5b58\u5728\u65f6&nbsp;\u4f1a\u9ed8\u8ba4\u521b\u5efa\u4e00\u4e2atopic<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;num.partitions&nbsp;=&nbsp;1&nbsp;#\u9ed8\u8ba4Topic\u5206\u533a\u6570<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;num.replica.fetchers&nbsp;=&nbsp;1&nbsp;#\u9ed8\u8ba4\u526f\u672c\u6570<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">@GetMapping<\/span>(<span style=\"color: #98c379;line-height: 26px;\">\"\/hello1\"<\/span>)<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;String&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">hello1<\/span><span style=\"line-height: 26px;\">()<\/span>&nbsp;<\/span>{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;\u53d1\u9001\u6d88\u606f<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;kafkaTemplate.send(<span style=\"color: #98c379;line-height: 26px;\">\"hello1\"<\/span>,&nbsp;<span style=\"color: #98c379;line-height: 26px;\">\"hello1\"<\/span>);<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">return<\/span>&nbsp;<span style=\"color: #98c379;line-height: 26px;\">\"hello1\"<\/span>;<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br  \/><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;\u63a5\u6536\u6d88\u606f<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">@KafkaListener<\/span>(id&nbsp;=&nbsp;<span style=\"color: #98c379;line-height: 26px;\">\"hello1Group\"<\/span>,&nbsp;topics&nbsp;=&nbsp;<span style=\"color: #98c379;line-height: 26px;\">\"hello1\"<\/span>)<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">void<\/span>&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">listen1<\/span><span style=\"line-height: 26px;\">(String&nbsp;msg)<\/span>&nbsp;<\/span>{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"color: #98c379;line-height: 26px;\">\"hello1&nbsp;receive&nbsp;value:&nbsp;{}\"<\/span>&nbsp;,&nbsp;msg);<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;hello1&nbsp;receive&nbsp;value:&nbsp;hello1<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u8bf7\u6c42\u4e4b\u540e\uff0c\u89c2\u5bdf\u63a7\u5236\u53f0\u4ee5\u53ca\u7ba1\u7406\u540e\u53f0\uff0c\u53d1\u73b0\u5e76\u6ca1\u6709\u62a5\u9519\uff0c\u5e76\u4e14\u7ed9\u6211\u4eec\u81ea\u52a8\u521b\u5efa\u4e86\u4e00\u4e2a<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">topic<\/code>,\u5728\u81ea\u52a8\u521b\u5efa\u4e0b\uff0c\u9ed8\u8ba4\u7684\u53c2\u6570\u662f\uff1a<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: rgb(40, 44, 52) url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/nibxxlib1VaPcFrt9kcuWJhMvFHukZf6ib3qIOjibUnI99BOJX0T1TEzHhFNhF51dOp6ZzyeMxWzkQZrMoHF1w09sJWQKuibDcOcT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat;height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\">&nbsp;&nbsp;num.partitions&nbsp;=&nbsp;1&nbsp;#\u9ed8\u8ba4Topic\u5206\u533a\u6570<br  \/>&nbsp;&nbsp;num.replica.fetchers&nbsp;=&nbsp;1&nbsp;#\u9ed8\u8ba4\u526f\u672c\u6570<br  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u5982\u679c\u6211\u60f3\u624b\u52a8\u521b\u5efa\u5462?\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">NewTopic<\/code>\u6765\u624b\u52a8\u521b\u5efa:<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: rgb(40, 44, 52) url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/nibxxlib1VaPcFrt9kcuWJhMvFHukZf6ib3qIOjibUnI99BOJX0T1TEzHhFNhF51dOp6ZzyeMxWzkQZrMoHF1w09sJWQKuibDcOcT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat;height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\"><span style=\"color: #61aeee;line-height: 26px;\">@Configuration<\/span><br  \/><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">class<\/span>&nbsp;<span style=\"color: #e6c07b;line-height: 26px;\">KafkaConfig<\/span>&nbsp;<\/span>{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">@Bean<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;KafkaAdmin&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">admin<\/span><span style=\"line-height: 26px;\">(KafkaProperties&nbsp;properties)<\/span><\/span>{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;KafkaAdmin&nbsp;admin&nbsp;=&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">new<\/span>&nbsp;KafkaAdmin(properties.buildAdminProperties());<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;\u9ed8\u8ba4False,\u5728Broker\u4e0d\u53ef\u7528\u65f6,\u5982\u679c\u4f60\u89c9\u5f97Broker\u4e0d\u53ef\u7528\u5f71\u54cd\u6b63\u5e38\u4e1a\u52a1\u9700\u8981\u663e\u793a\u7684\u5c06\u8fd9\u4e2a\u503c\u8bbe\u7f6e\u4e3aTrue<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;admin.setFatalIfBrokerNotAvailable(<span style=\"color: #c678dd;line-height: 26px;\">true<\/span>);<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;setAutoCreate(false)&nbsp;:&nbsp;\u9ed8\u8ba4\u503c\u4e3aTrue\uff0c\u4e5f\u5c31\u662fKafka\u5b9e\u4f8b\u5316\u540e\u4f1a\u81ea\u52a8\u521b\u5efa\u5df2\u7ecf\u5b9e\u4f8b\u5316\u7684NewTopic\u5bf9\u8c61<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;initialize()\uff1a\u5f53setAutoCreate\u4e3afalse\u65f6\uff0c\u9700\u8981\u6211\u4eec\u7a0b\u5e8f\u663e\u793a\u7684\u8c03\u7528admin\u7684initialize()\u65b9\u6cd5\u6765\u521d\u59cb\u5316NewTopic\u5bf9\u8c61<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">return<\/span>&nbsp;admin;<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br  \/><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/**<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;\u521b\u5efa\u6307\u5b9a\u53c2\u6570\u7684&nbsp;topic<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">@return<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*\/<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">@Bean<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;NewTopic&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">topic<\/span><span style=\"line-height: 26px;\">()<\/span>&nbsp;<\/span>{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">return<\/span>&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">new<\/span>&nbsp;NewTopic(<span style=\"color: #98c379;line-height: 26px;\">\"hello2\"<\/span>,&nbsp;<span style=\"color: #d19a66;line-height: 26px;\">0<\/span>,&nbsp;(<span style=\"color: #c678dd;line-height: 26px;\">short<\/span>)&nbsp;<span style=\"color: #d19a66;line-height: 26px;\">0<\/span>);<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br  \/>}<br  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u5982\u679c\u8981\u66f4\u65b0\u5462?\u4e5f\u975e\u5e38\u7684\u7b80\u5355<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: rgb(40, 44, 52) url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/nibxxlib1VaPcFrt9kcuWJhMvFHukZf6ib3qIOjibUnI99BOJX0T1TEzHhFNhF51dOp6ZzyeMxWzkQZrMoHF1w09sJWQKuibDcOcT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat;height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\">&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/**<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;\u66f4\u65b0&nbsp;topic<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">@return<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*\/<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">@Bean<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;NewTopic&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">topicUpdate<\/span><span style=\"line-height: 26px;\">()<\/span>&nbsp;<\/span>{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">return<\/span>&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">new<\/span>&nbsp;NewTopic(<span style=\"color: #98c379;line-height: 26px;\">\"hello2\"<\/span>,&nbsp;<span style=\"color: #d19a66;line-height: 26px;\">1<\/span>,&nbsp;(<span style=\"color: #c678dd;line-height: 26px;\">short<\/span>)&nbsp;<span style=\"color: #d19a66;line-height: 26px;\">1<\/span>);<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u6ce8\u610f\u8fd9\u91cc\u7684\u53c2\u6570\u53ea\u80fd<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">+<\/code>\u4e0d\u80fd<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">-<\/code><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u90a3\u4e48\u53c8\u6709\u5c0f\u4f19\u4f34\u95ee\u4e86\uff0c\u8fd9\u79cd\u65b9\u5f0f\u592a\u7b80\u5355\u4e86\uff0c\u5982\u679c\u6211\u60f3\u5728\u4ee3\u7801\u903b\u8f91\u4e2d\u6765\u521b\u5efa\u5462?\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">AdminClient<\/code>\u6765\u624b\u52a8\u521b\u5efa<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: rgb(40, 44, 52) url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/nibxxlib1VaPcFrt9kcuWJhMvFHukZf6ib3qIOjibUnI99BOJX0T1TEzHhFNhF51dOp6ZzyeMxWzkQZrMoHF1w09sJWQKuibDcOcT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat;height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\">&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/**<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;AdminClient&nbsp;\u521b\u5efa<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*\/<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">@Autowired<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">private<\/span>&nbsp;KafkaProperties&nbsp;properties;<br  \/><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">@GetMapping<\/span>(<span style=\"color: #98c379;line-height: 26px;\">\"\/create\/{topicName}\"<\/span>)<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;String&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">createTopic<\/span><span style=\"line-height: 26px;\">(@PathVariable&nbsp;String&nbsp;topicName)<\/span>&nbsp;<\/span>{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AdminClient&nbsp;client&nbsp;=&nbsp;AdminClient.create(properties.buildAdminProperties());<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">if<\/span>(client&nbsp;!=<span style=\"color: #c678dd;line-height: 26px;\">null<\/span>){<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">try<\/span>&nbsp;{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Collection&lt;NewTopic&gt;&nbsp;newTopics&nbsp;=&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">new<\/span>&nbsp;ArrayList&lt;&gt;(<span style=\"color: #d19a66;line-height: 26px;\">1<\/span>);<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;newTopics.add(<span style=\"color: #c678dd;line-height: 26px;\">new<\/span>&nbsp;NewTopic(topicName,<span style=\"color: #d19a66;line-height: 26px;\">1<\/span>,(<span style=\"color: #c678dd;line-height: 26px;\">short<\/span>)&nbsp;<span style=\"color: #d19a66;line-height: 26px;\">1<\/span>));<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;client.createTopics(newTopics);<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<span style=\"color: #c678dd;line-height: 26px;\">catch<\/span>&nbsp;(Throwable&nbsp;e){<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;e.printStackTrace();<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<span style=\"color: #c678dd;line-height: 26px;\">finally<\/span>&nbsp;{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;client.close();<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">return<\/span>&nbsp;topicName;<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u89c2\u5bdf\u4e0b\u7ba1\u7406\u540e\u53f0\uff0c\u53d1\u73b0<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">topic<\/code>\u90fd\u521b\u5efa\u6210\u529f\u4e86~<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;font-weight: bold;color: black;font-size: 22px;text-align: left;margin: 20px 10px 0px 0px;\"><span style=\"display: none;\"><\/span><span style=\"font-size: 18px;font-weight: bold;display: inline-block;padding-left: 10px;border-left: 5px solid #916dd5;\">\u83b7\u53d6\u6d88\u606f\u53d1\u9001\u7684\u7ed3\u679c<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u6709\u65f6\u5019\u6211\u4eec\u53d1\u9001\u6d88\u606f\u4e0d\u77e5\u9053\u662f\u4e0d\u662f\u53d1\u6210\u529f\u4e86\uff0c\u9700\u8981\u6709\u4e00\u4e2a\u7ed3\u679c\u901a\u77e5\u3002\u6709\u4e24\u79cd\u65b9\u5f0f\uff0c\u4e00\u79cd\u662f<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">\u540c\u6b65<\/code>\u4e00\u79cd\u662f<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">\u5f02\u6b65<\/code><\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;color: black;font-size: 16px;font-weight: bold;text-align: center;\"><span style=\"display: none;\"><\/span><span style=\"border-bottom: 2px solid #d89cf6;\">\u540c\u6b65\u83b7\u53d6\u7ed3\u679c<\/span><span style=\"display: none;\"><\/span><\/h3>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: rgb(40, 44, 52) url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/nibxxlib1VaPcFrt9kcuWJhMvFHukZf6ib3qIOjibUnI99BOJX0T1TEzHhFNhF51dOp6ZzyeMxWzkQZrMoHF1w09sJWQKuibDcOcT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat;height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\"><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/**<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;\u83b7\u53d6\u901a\u77e5\u7ed3\u679c<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">@return<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*\/<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">@GetMapping<\/span>(<span style=\"color: #98c379;line-height: 26px;\">\"\/hello2\"<\/span>)<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;String&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">hello2<\/span><span style=\"line-height: 26px;\">()<\/span>&nbsp;<\/span>{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;\u540c\u6b65\u83b7\u53d6\u7ed3\u679c<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ListenableFuture&lt;SendResult&lt;Object,Object&gt;&gt;&nbsp;future&nbsp;=&nbsp;kafkaTemplate.send(<span style=\"color: #98c379;line-height: 26px;\">\"hello2\"<\/span>,<span style=\"color: #98c379;line-height: 26px;\">\"hello2\"<\/span>);<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">try<\/span>&nbsp;{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SendResult&lt;Object,Object&gt;&nbsp;result&nbsp;=&nbsp;future.get();<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"color: #98c379;line-height: 26px;\">\"success&nbsp;&gt;&gt;&gt;&nbsp;{}\"<\/span>,&nbsp;result.getRecordMetadata().topic());&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;success&nbsp;&gt;&gt;&gt;&nbsp;hello2<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<span style=\"color: #c678dd;line-height: 26px;\">catch<\/span>&nbsp;(Throwable&nbsp;e){<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;e.printStackTrace();<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br  \/><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">return<\/span>&nbsp;<span style=\"color: #98c379;line-height: 26px;\">\"hello2\"<\/span>;<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br  \/><\/code><\/pre>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;color: black;font-size: 16px;font-weight: bold;text-align: center;\"><span style=\"display: none;\"><\/span><span style=\"border-bottom: 2px solid #d89cf6;\">\u5f02\u6b65\u83b7\u53d6<\/span><span style=\"display: none;\"><\/span><\/h3>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: rgb(40, 44, 52) url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/nibxxlib1VaPcFrt9kcuWJhMvFHukZf6ib3qIOjibUnI99BOJX0T1TEzHhFNhF51dOp6ZzyeMxWzkQZrMoHF1w09sJWQKuibDcOcT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat;height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\"><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/**<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;\u83b7\u53d6\u901a\u77e5\u7ed3\u679c<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">@return<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*\/<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">@GetMapping<\/span>(<span style=\"color: #98c379;line-height: 26px;\">\"\/hello2\"<\/span>)<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;String&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">hello2<\/span><span style=\"line-height: 26px;\">()<\/span>&nbsp;<\/span>{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;\u53d1\u9001\u6d88\u606f&nbsp;-&nbsp;\u5f02\u6b65\u83b7\u53d6\u901a\u77e5\u7ed3\u679c<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;kafkaTemplate.send(<span style=\"color: #98c379;line-height: 26px;\">\"hello2\"<\/span>,&nbsp;<span style=\"color: #98c379;line-height: 26px;\">\"async&nbsp;hello2\"<\/span>).addCallback(<span style=\"color: #c678dd;line-height: 26px;\">new<\/span>&nbsp;ListenableFutureCallback&lt;SendResult&lt;Object,&nbsp;Object&gt;&gt;()&nbsp;{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">@Override<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">void<\/span>&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">onFailure<\/span><span style=\"line-height: 26px;\">(Throwable&nbsp;throwable)<\/span>&nbsp;<\/span>{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.error(<span style=\"color: #98c379;line-height: 26px;\">\"fail&nbsp;&gt;&gt;&gt;&gt;{}\"<\/span>,&nbsp;throwable.getMessage());<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br  \/><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">@Override<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">void<\/span>&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">onSuccess<\/span><span style=\"line-height: 26px;\">(SendResult&lt;Object,&nbsp;Object&gt;&nbsp;objectObjectSendResult)<\/span>&nbsp;<\/span>{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"color: #98c379;line-height: 26px;\">\"async&nbsp;success&nbsp;&gt;&gt;&gt;&nbsp;{}\"<\/span>,&nbsp;objectObjectSendResult.getRecordMetadata().topic());&nbsp;<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;async&nbsp;success&nbsp;&gt;&gt;&gt;&nbsp;hello2<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});<br  \/><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">return<\/span>&nbsp;<span style=\"color: #98c379;line-height: 26px;\">\"hello2\"<\/span>;<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br  \/><\/code><\/pre>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;font-weight: bold;color: black;font-size: 22px;text-align: left;margin: 20px 10px 0px 0px;\"><span style=\"display: none;\"><\/span><span style=\"font-size: 18px;font-weight: bold;display: inline-block;padding-left: 10px;border-left: 5px solid #916dd5;\">Kafka\u4e8b\u52a1<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u540c\u6837\u7684,\u6d88\u606f\u4e5f\u4f1a\u5b58\u5728<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">\u4e8b\u52a1<\/code>,\u5982\u679c\u7b2c\u4e00\u6761\u6d88\u606f\u53d1\u9001\u6210\u529f\uff0c\u518d\u53d1\u7b2c\u4e8c\u6761\u6d88\u606f\u7684\u65f6\u5019\u51fa\u73b0\u5f02\u5e38\uff0c\u90a3\u4e48\u5c31\u4f1a\u629b\u51fa\u5f02\u5e38\u5e76\u56de\u6eda\u7b2c\u4e00\u6761\u6d88\u606f,\u4e0b\u9762\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\u4f53\u4f1a\u4e00\u4e0b<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: rgb(40, 44, 52) url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/nibxxlib1VaPcFrt9kcuWJhMvFHukZf6ib3qIOjibUnI99BOJX0T1TEzHhFNhF51dOp6ZzyeMxWzkQZrMoHF1w09sJWQKuibDcOcT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat;height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\"><span style=\"color: #61aeee;line-height: 26px;\">@GetMapping<\/span>(<span style=\"color: #98c379;line-height: 26px;\">\"\/hello3\"<\/span>)<br  \/><span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;String&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">hello3<\/span><span style=\"line-height: 26px;\">()<\/span>&nbsp;<\/span>{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;kafkaTemplate.executeInTransaction(t&nbsp;-&gt;&nbsp;{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t.send(<span style=\"color: #98c379;line-height: 26px;\">\"hello3\"<\/span>,<span style=\"color: #98c379;line-height: 26px;\">\"msg1\"<\/span>);<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">if<\/span>(<span style=\"color: #c678dd;line-height: 26px;\">true<\/span>)<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">throw<\/span>&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">new<\/span>&nbsp;RuntimeException(<span style=\"color: #98c379;line-height: 26px;\">\"failed\"<\/span>);<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t.send(<span style=\"color: #98c379;line-height: 26px;\">\"hello3\"<\/span>,<span style=\"color: #98c379;line-height: 26px;\">\"msg2\"<\/span>);<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">return<\/span>&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">true<\/span>;<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;});<br  \/><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">return<\/span>&nbsp;<span style=\"color: #98c379;line-height: 26px;\">\"hello3\"<\/span>;<br  \/>}<br  \/><br  \/><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;\u63a5\u6536\u6d88\u606f<\/span><br  \/><span style=\"color: #61aeee;line-height: 26px;\">@KafkaListener<\/span>(id&nbsp;=&nbsp;<span style=\"color: #98c379;line-height: 26px;\">\"hello3Group\"<\/span>,&nbsp;topics&nbsp;=&nbsp;<span style=\"color: #98c379;line-height: 26px;\">\"hello3\"<\/span>)<br  \/><span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">void<\/span>&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">listen3<\/span><span style=\"line-height: 26px;\">(String&nbsp;msg)<\/span>&nbsp;<\/span>{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"color: #98c379;line-height: 26px;\">\"hello3&nbsp;receive&nbsp;value:&nbsp;{}\"<\/span>&nbsp;,&nbsp;msg);<br  \/>}<br  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">Spring-kafka<\/code>\u81ea\u52a8\u751f\u6210\u7684<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">KafkaTemplate<\/code>\u5b9e\u4f8b\uff0c\u662f\u4e0d\u5177\u6709\u4e8b\u52a1\u6d88\u606f\u53d1\u9001\u80fd\u529b\u7684\u3002\u6211\u4eec\u9700\u8981\u6dfb\u52a0<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">transaction-id-prefix<\/code>\u6765\u6fc0\u6d3b\u5b83<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: rgb(40, 44, 52) url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/nibxxlib1VaPcFrt9kcuWJhMvFHukZf6ib3qIOjibUnI99BOJX0T1TEzHhFNhF51dOp6ZzyeMxWzkQZrMoHF1w09sJWQKuibDcOcT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat;height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\"><span style=\"color: #d19a66;line-height: 26px;\">spring:<\/span><br  \/>&nbsp;&nbsp;<span style=\"color: #d19a66;line-height: 26px;\">kafka:<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #d19a66;line-height: 26px;\">producer:<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #d19a66;line-height: 26px;\">bootstrap-servers:<\/span>&nbsp;<span style=\"color: #d19a66;line-height: 26px;\">127.0<\/span><span style=\"color: #d19a66;line-height: 26px;\">.0<\/span><span style=\"color: #d19a66;line-height: 26px;\">.1<\/span><span style=\"color: #98c379;line-height: 26px;\">:9092<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #d19a66;line-height: 26px;\">transaction-id-prefix:<\/span>&nbsp;<span style=\"color: #98c379;line-height: 26px;\">kafka_.<\/span><br  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u542f\u52a8\u4e4b\u540e\uff0c\u89c2\u5bdf\u63a7\u5236\u53f0\u7684\u53d8\u5316~ \uff0c\u9664\u6b64\u4e4b\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u6ce8\u89e3\u7684\u65b9\u5f0f<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">@Transactional<\/code>\u6765\u5f00\u542f\u4e8b\u52a1<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: rgb(40, 44, 52) url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/nibxxlib1VaPcFrt9kcuWJhMvFHukZf6ib3qIOjibUnI99BOJX0T1TEzHhFNhF51dOp6ZzyeMxWzkQZrMoHF1w09sJWQKuibDcOcT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat;height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\"><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;\u6ce8\u89e3\u65b9\u5f0f<\/span><br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">@Transactional<\/span>(rollbackFor&nbsp;=&nbsp;RuntimeException<span style=\"line-height: 26px;\">.<span style=\"color: #c678dd;line-height: 26px;\">class<\/span>)<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;@<span style=\"color: #e6c07b;line-height: 26px;\">GetMapping<\/span>(\"\/<span style=\"color: #e6c07b;line-height: 26px;\">hello4<\/span>\")<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #e6c07b;line-height: 26px;\">public<\/span>&nbsp;<span style=\"color: #e6c07b;line-height: 26px;\">String<\/span>&nbsp;<span style=\"color: #e6c07b;line-height: 26px;\">hello4<\/span>()&nbsp;<\/span>{<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;kafkaTemplate.send(<span style=\"color: #98c379;line-height: 26px;\">\"hello3\"<\/span>,<span style=\"color: #98c379;line-height: 26px;\">\"msg1\"<\/span>);<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">if<\/span>(<span style=\"color: #c678dd;line-height: 26px;\">true<\/span>)<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">throw<\/span>&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">new<\/span>&nbsp;RuntimeException(<span style=\"color: #98c379;line-height: 26px;\">\"failed\"<\/span>);<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;kafkaTemplate.send(<span style=\"color: #98c379;line-height: 26px;\">\"hello3\"<\/span>,<span style=\"color: #98c379;line-height: 26px;\">\"msg2\"<\/span>);<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">return<\/span>&nbsp;<span style=\"color: #98c379;line-height: 26px;\">\"hello4\"<\/span>;<br  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br  \/><\/code><\/pre>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;font-weight: bold;color: black;font-size: 22px;text-align: left;margin: 20px 10px 0px 0px;\"><span style=\"display: none;\"><\/span><span style=\"font-size: 18px;font-weight: bold;display: inline-block;padding-left: 10px;border-left: 5px solid #916dd5;\">\u7ed3\u675f\u8bed<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u4e0b\u8282\u5e26\u5927\u5bb6\u770b\u4e0b<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">SpringBoot\u6574\u5408Kafka<\/code>\u6df1\u5165\u4f7f\u7528~<\/p>\n<section><mp-common-miniprogram data-miniprogram-nickname=\"\u7a0b\u5e8f\u5458\u76ae\u5361\u79cb\" data-miniprogram-avatar=\"http:\/\/mmbiz.qpic.cn\/mmbiz_png\/4riatBnj7IX3cWJjxpZicYUQT06DRbhdPI4t1rw1Fc93NstHnXhf6t7OLvb8xdmkepzDgic02GNh5P1hnYNEdAibGQ\/640?wx_fmt=png&amp;wxfrom=200\" data-miniprogram-title=\"\u5f80\u671f\u6559\u7a0b \u5feb\u6765\u770b\u770b\u5427~\" data-miniprogram-imageurl=\"http:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/dDva6rRBQ2D5dkBFffQEuiaWEGoJ9UKFm3FWNN1jWOksibBVWj7MaA1nmUoUhibV7SR9Bq9N23p3NpiasV7z1tU7dA\/0?wx_fmt=jpeg\" data-miniprogram-type=\"card\" data-miniprogram-servicetype=\"0\" data-pluginname=\"insertminiprogram\" class=\"js_uneditable custom_select_card mp_miniprogram_iframe\" data-miniprogram-appid=\"wx7564a3163c01a921\" data-weui-theme=\"light\" data-miniprogram-path=\"pages\/index\/index\"><\/mp-common-miniprogram><\/section>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><strong style=\"color: #916dd5;font-weight: bold;\">\u300c\u672c\u7740\u628a\u81ea\u5df1\u77e5\u9053\u7684\u90fd\u544a\u8bc9\u5927\u5bb6\uff0c\u5982\u679c\u672c\u6587\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\uff0c<code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">\u70b9\u8d5e+\u5173\u6ce8<\/code>\u9f13\u52b1\u4e00\u4e0b\u5457~\u300d<\/strong><\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;font-weight: bold;color: black;font-size: 22px;text-align: left;margin: 20px 10px 0px 0px;\"><span style=\"display: none;\"><\/span><span style=\"font-size: 18px;font-weight: bold;display: inline-block;padding-left: 10px;border-left: 5px solid #916dd5;\">\u76f8\u5173\u6587\u7ae0<\/span><\/h2>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;font-size: 15px;list-style-type: circle;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247485479&amp;idx=1&amp;sn=0dbabb0cd8e21d98cd3362f80bae516f&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u4e00\u8d77\u6765\u5b66kafka\u4e4bKafka\u96c6\u7fa4\u642d\u5efa<\/a><\/section>\n<\/li>\n<\/ul>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;font-weight: bold;color: black;font-size: 22px;text-align: left;margin: 20px 10px 0px 0px;\"><span style=\"display: none;\"><\/span><span style=\"font-size: 18px;font-weight: bold;display: inline-block;padding-left: 10px;border-left: 5px solid #916dd5;\">ElasticSearch \u4e13\u9898\u5b66\u4e60<\/span><\/h2>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;font-size: 15px;list-style-type: circle;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247485095&amp;idx=1&amp;sn=8f774a06e1930c26c87302c6d08eb1cc&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u5229\u7528docker\u642d\u5efaes\u96c6\u7fa4<\/a><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247485153&amp;idx=1&amp;sn=1551d365d5f88fed0d8e7c71e1d00ae7&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u4e00\u8d77\u6765\u5b66ElasticSearch(\u4e00)<\/a><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247485199&amp;idx=1&amp;sn=e4c8ad1f9555c27da83e674f41e58023&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u4e00\u8d77\u6765\u5b66ElasticSearch(\u4e8c)<\/a><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247485211&amp;idx=1&amp;sn=c3158c593d5a5c71742f41a96a123ff2&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u4e00\u8d77\u6765\u5b66ElasticSearch(\u4e09)<\/a><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247485225&amp;idx=1&amp;sn=38776d397013f02213560447ab2d6d6c&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u4e00\u8d77\u6765\u5b66ElasticSearch(\u56db)<\/a><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247485266&amp;idx=1&amp;sn=484dbf08cfcde78305821f443a5355d9&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u4e00\u8d77\u6765\u5b66ElasticSearch(\u4e94)<\/a><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247485307&amp;idx=1&amp;sn=fb301a32158380c9aaf1f8939808bebd&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u4e00\u8d77\u6765\u5b66ElasticSearch(\u516d)<\/a><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247485337&amp;idx=1&amp;sn=0a98f315f5b96a96dea6cddba219d3e9&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u4e00\u8d77\u6765\u5b66ElasticSearch(\u4e03)<\/a><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247485348&amp;idx=1&amp;sn=740d07725fbe15d2f376a44d2d3be6ed&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u4e00\u8d77\u6765\u5b66ElasticSearch(\u516b)<\/a><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247485373&amp;idx=1&amp;sn=a6dfda1ea450c33e9db922ebce10f60b&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u4e00\u8d77\u6765\u5b66ElasticSearch(\u4e5d)<\/a><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247485398&amp;idx=1&amp;sn=1a8c27f2dc02b744edaab11b41c850bc&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u4e00\u8d77\u6765\u5b66ElasticSearch(\u5341)<\/a><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247485430&amp;idx=1&amp;sn=806b9cc12914d5cff255267d67b5ecf4&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u4e00\u8d77\u6765\u5b66ElasticSearch\u4e4b\u6574\u5408SpringBoot(\u4e00)<\/a><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247485448&amp;idx=1&amp;sn=a256334a4cade8b33d7fa98b235a9b16&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u4e00\u8d77\u6765\u5b66ElasticSearch\u4e4b\u6574\u5408SpringBoot(\u4e8c)<\/a><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247485465&amp;idx=1&amp;sn=345b8202d351e4a5d893586b817124e3&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u4e00\u8d77\u6765\u5b66ElasticSearch\u4e4b\u6574\u5408SpringBoot(\u4e09)<\/a><\/p>\n<\/section>\n<\/li>\n<\/ul>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;font-weight: bold;color: black;font-size: 22px;text-align: left;margin: 20px 10px 0px 0px;\"><span style=\"display: none;\"><\/span><span style=\"font-size: 18px;font-weight: bold;display: inline-block;padding-left: 10px;border-left: 5px solid #916dd5;\">\u9879\u76ee\u6e90\u7801(\u6e90\u7801\u5df2\u66f4\u65b0 \u6b22\u8fcestar\u2b50\ufe0f)<\/span><\/h2>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;font-size: 15px;list-style-type: circle;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">springboot-es-all: https:\/\/github.com\/qiuChengleiy\/springboot-es-all<\/section>\n<\/li>\n<\/ul>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;font-weight: bold;color: black;font-size: 22px;text-align: left;margin: 20px 10px 0px 0px;\"><span style=\"display: none;\"><\/span><span style=\"font-size: 18px;font-weight: bold;display: inline-block;padding-left: 10px;border-left: 5px solid #916dd5;\">\u5f80\u671f\u5e76\u53d1\u7f16\u7a0b\u5185\u5bb9\u63a8\u8350<\/span><\/h2>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;font-size: 15px;list-style-type: circle;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484405&amp;idx=1&amp;sn=a0f6306f9cf6d42513ceb405c27fb5c6&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >Java\u591a\u7ebf\u7a0b\u4e13\u9898\u4e4b\u7ebf\u7a0b\u4e0e\u8fdb\u7a0b\u6982\u8ff0<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484420&amp;idx=1&amp;sn=091f16799a39c3b0accb34508c74f502&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >Java\u591a\u7ebf\u7a0b\u4e13\u9898\u4e4b\u7ebf\u7a0b\u7c7b\u548c\u63a5\u53e3\u5165\u95e8<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484445&amp;idx=1&amp;sn=d52c414aa01d7228b9c56e6cbf51b383&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >Java\u591a\u7ebf\u7a0b\u4e13\u9898\u4e4b\u8fdb\u9636\u5b66\u4e60Thread(\u542b\u6e90\u7801\u5206\u6790)<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484481&amp;idx=1&amp;sn=71634dcc861d5352a7c484c8fda1813f&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >Java\u591a\u7ebf\u7a0b\u4e13\u9898\u4e4bCallable\u3001Future\u4e0eFutureTask(\u542b\u6e90\u7801\u5206\u6790)<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484502&amp;idx=1&amp;sn=278fd3b18af993245fe31e0846778d6d&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: \u6709\u4e86\u89e3\u8fc7\u7ebf\u7a0b\u7ec4\u548c\u7ebf\u7a0b\u4f18\u5148\u7ea7\u5417<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484525&amp;idx=1&amp;sn=02795b750487873becddb73fc6a4a4c5&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: \u8bf4\u4e00\u4e0b\u7ebf\u7a0b\u7684\u751f\u547d\u5468\u671f\u8fc7\u7a0b<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484564&amp;idx=1&amp;sn=e763cd00bfc7a170b9837c841b34afe6&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: \u8bf4\u4e00\u4e0b\u7ebf\u7a0b\u95f4\u7684\u901a\u4fe1<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484570&amp;idx=1&amp;sn=9ff4d1c83b96ff3f1145d2daf067b842&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: \u8bf4\u4e00\u4e0bJava\u7684\u5171\u4eab\u5185\u5b58\u6a21\u578b<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484576&amp;idx=1&amp;sn=ebec110c348f4ebfa8287e587e83c256&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: \u6709\u4e86\u89e3\u8fc7\u6307\u4ee4\u91cd\u6392\u5417\uff0c\u4ec0\u4e48\u662fhappens-before<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484590&amp;idx=1&amp;sn=c518647803181f8744f82db2c08158c7&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: \u6709\u4e86\u89e3\u8fc7volatile\u5173\u952e\u5b57\u5417 \u8bf4\u8bf4\u770b<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484604&amp;idx=1&amp;sn=6c972adc14605693f2849f0a714385e1&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: \u6709\u4e86\u89e3\u8fc7Synchronized\u5417 \u8bf4\u8bf4\u770b<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484617&amp;idx=1&amp;sn=46f4035948f6818895ddffc97493b068&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >Java\u591a\u7ebf\u7a0b\u4e13\u9898\u4e4bLock\u9501\u7684\u4f7f\u7528<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484666&amp;idx=1&amp;sn=4875ee063645c0b31fac566f2e1d8fa5&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: \u6709\u4e86\u89e3\u8fc7ReentrantLock\u7684\u5e95\u5c42\u5b9e\u73b0\u5417\uff1f\u8bf4\u8bf4\u770b<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484682&amp;idx=1&amp;sn=33a06045a06abb5dc0b9056bc0a2c72b&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: \u6709\u4e86\u89e3\u8fc7CAS\u548c\u539f\u5b50\u64cd\u4f5c\u5417\uff1f\u8bf4\u8bf4\u770b<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484701&amp;idx=1&amp;sn=c3a876326d8e6875cf15b9ef06b03c7f&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >Java\u591a\u7ebf\u7a0b\u4e13\u9898\u4e4b\u7ebf\u7a0b\u6c60\u7684\u57fa\u672c\u4f7f\u7528<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484749&amp;idx=1&amp;sn=31dc5d4e7d1d154fad16da55108cd5ec&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: \u6709\u4e86\u89e3\u8fc7\u7ebf\u7a0b\u6c60\u7684\u5de5\u4f5c\u539f\u7406\u5417\uff1f\u8bf4\u8bf4\u770b<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484767&amp;idx=1&amp;sn=edb1e4223f040a2b9f67f60d669db146&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: \u7ebf\u7a0b\u6c60\u662f\u5982\u4f55\u505a\u5230\u7ebf\u7a0b\u590d\u7528\u7684\uff1f\u6709\u4e86\u89e3\u8fc7\u5417\uff0c\u8bf4\u8bf4\u770b<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484794&amp;idx=1&amp;sn=03561ee6b83a1bb1a4041ec2ad8882da&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: \u963b\u585e\u961f\u5217\u6709\u4e86\u89e3\u8fc7\u5417?\u8bf4\u8bf4\u770b<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484830&amp;idx=1&amp;sn=33d6a6b5ca5d4f612e23f3a995773be2&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: \u963b\u585e\u961f\u5217\u7684\u5e95\u5c42\u5b9e\u73b0\u6709\u4e86\u89e3\u8fc7\u5417? \u8bf4\u8bf4\u770b<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484841&amp;idx=1&amp;sn=5f4a4b0e59cffc5fc6be4753f1a58778&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: \u540c\u6b65\u5bb9\u5668\u548c\u5e76\u53d1\u5bb9\u5668\u6709\u7528\u8fc7\u5417? \u8bf4\u8bf4\u770b<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484860&amp;idx=1&amp;sn=e19e594d3b23641a5091a975eb543427&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: CopyOnWrite\u5bb9\u5668\u6709\u4e86\u89e3\u8fc7\u5417? \u8bf4\u8bf4\u770b<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484894&amp;idx=1&amp;sn=bdbd1b8969ffe5b8f7f4568d9ba5f300&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: Semaphore\u5728\u9879\u76ee\u4e2d\u6709\u4f7f\u7528\u8fc7\u5417\uff1f\u8bf4\u8bf4\u770b(\u6e90\u7801\u5256\u6790)<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484915&amp;idx=1&amp;sn=e6b900c107ef72894797267366ea2043&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: Exchanger\u5728\u9879\u76ee\u4e2d\u6709\u4f7f\u7528\u8fc7\u5417\uff1f\u8bf4\u8bf4\u770b(\u6e90\u7801\u5256\u6790)<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484946&amp;idx=1&amp;sn=36539ba3b1732cf5bb47c49dc4c131a6&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: CountDownLatch\u6709\u4e86\u89e3\u8fc7\u5417\uff1f\u8bf4\u8bf4\u770b(\u6e90\u7801\u5256\u6790)<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484967&amp;idx=1&amp;sn=62c3fc3ed833aea44f2f545498aca914&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: CyclicBarrier\u6709\u4e86\u89e3\u8fc7\u5417\uff1f\u8bf4\u8bf4\u770b(\u6e90\u7801\u5256\u6790)<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484977&amp;idx=1&amp;sn=fcdab6b20fb7f6ec4662dd7a08777a3b&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: Phaser\u6709\u4e86\u89e3\u8fc7\u5417\uff1f\u8bf4\u8bf4\u770b<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484993&amp;idx=1&amp;sn=870fd84ec154fdbae069ae16f01df3b5&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: Fork\/Join \u6709\u4e86\u89e3\u8fc7\u5417\uff1f\u8bf4\u8bf4\u770b\uff08\u542b\u6e90\u7801\u5206\u6790\uff09<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247485011&amp;idx=1&amp;sn=69112a5a2df75ad5019d96d35ecde26e&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u9762\u8bd5\u5b98: Stream\u5e76\u884c\u6d41\u6709\u4e86\u89e3\u8fc7\u5417\uff1f\u8bf4\u8bf4\u770b<\/a><\/section>\n<\/li>\n<\/ul>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;font-weight: bold;color: black;font-size: 22px;text-align: left;margin: 20px 10px 0px 0px;\"><span style=\"display: none;\"><\/span><span style=\"font-size: 18px;font-weight: bold;display: inline-block;padding-left: 10px;border-left: 5px solid #916dd5;\">\u63a8\u8350 SpringBoot &amp; SpringCloud (\u6e90\u7801\u5df2\u66f4\u65b0 \u6b22\u8fcestar\u2b50\ufe0f)<\/span><\/h2>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;font-size: 15px;list-style-type: circle;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">springboot-all<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">\u5730\u5740<\/code>: https:\/\/github.com\/qiuChengleiy\/springboot-all.git<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484270&amp;idx=1&amp;sn=7c99c89d9672effa90547f92815cb1b5&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >SpringBoot\u7cfb\u5217\u6559\u7a0b\u5408\u96c6<\/a><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247484392&amp;idx=1&amp;sn=e6c7e1231c4cf6b9f4debbe3257aca8b&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u4e00\u8d77\u6765\u5b66SpringCloud\u5408\u96c6<\/a><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247485040&amp;idx=1&amp;sn=9aa49de6950c73f06e9f513cbdb4825c&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >SpringCloud\u6574\u5408 Oauth2+Gateway+Jwt+Nacos \u5b9e\u73b0\u6388\u6743\u7801\u6a21\u5f0f\u7684\u670d\u52a1\u8ba4\u8bc1(\u4e00)<\/a><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDcxOTM3OQ==&amp;mid=2247485075&amp;idx=1&amp;sn=f598c4811469091a0eade9157c2909fb&amp;scene=21#wechat_redirect\" style=\"text-decoration: none;word-wrap: break-word;color: #916dd5;font-weight: bolder;border-bottom: 1px solid #916dd5;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >SpringCloud\u6574\u5408 Oauth2+Gateway+Jwt+Nacos \u5b9e\u73b0\u6388\u6743\u7801\u6a21\u5f0f\u7684\u670d\u52a1\u8ba4\u8bc1(\u4e8c)<\/a><\/p>\n<\/section>\n<\/li>\n<\/ul>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;font-weight: bold;color: black;font-size: 22px;text-align: left;margin: 20px 10px 0px 0px;\"><span style=\"display: none;\"><\/span><span style=\"font-size: 18px;font-weight: bold;display: inline-block;padding-left: 10px;border-left: 5px solid #916dd5;\">\u535a\u5ba2(\u9605\u8bfb\u4f53\u9a8c\u8f83\u4f73)<\/span><\/h2>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;font-size: 15px;list-style-type: circle;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\">\u6211\u7684\u535a\u5ba2(\u9605\u8bfb\u4f53\u9a8c\u8f83\u4f73)<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-size: 14px;font-weight: normal;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;margin: 10px 0px;letter-spacing: 2px;font-size: 14px;word-spacing: 2px;\"><code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: #916dd5;font-weight: bolder;background: none;\">\u5730\u5740<\/code>: https:\/\/github.com\/qiuChengleiy\/java-thread-all.git<\/p>\n<\/section>\n<\/li>\n<\/ul>\n<\/section>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u4e00\u8d77\u6765\u5b66kafka\u4e4b\u6574\u5408SpringBoot\u57fa\u672c\u4f7f\u7528 \u524d\u8a00 \u76ee\u524d\u6b63\u5728\u51fa\u4e00\u4e2aKafka\u4e13\u9898\u7cfb\u5217\u6559\u7a0b, \u7bc7\u5e45\u4f1a\u8f83\u591a, \u559c\u6b22\u7684\u8bdd\uff0c\u7ed9\u4e2a\u5173 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":222,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[16,7],"tags":[],"class_list":["post-221","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kafka","category-spring-boot"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230525135523141-150x150.jpg","content_first_image":null,"post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230525135523141-300x128.jpg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230525135523141-1024x437.jpg","post_frist_image":null,"post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230525135523141-300x128.jpg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230525135523141-1024x437.jpg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230525135523141.jpg","post_all_images":[],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Kafka","post_date":"2023-05-24","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":223,"next_post_id":255,"next_post_title":"SpringBoot + minio\u5b9e\u73b0\u5206\u7247\u4e0a\u4f20\u3001\u79d2\u4f20\u3001\u7eed\u4f20","previous_post_id":217,"previous_post_title":"\u4e00\u8d77\u6765\u5b66kafka\u4e4b\u6574\u5408SpringBoot\u6df1\u5165\u4f7f\u7528(\u4e00)","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/221","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=221"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/221\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/222"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}