{"id":40052,"date":"2023-04-02T12:47:51","date_gmt":"2023-03-06T13:02:24","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%a6%81%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8spring-cloud-stream%ef%bc%88redis%ef%bc%89%e3%80%82\/"},"modified":"2024-04-29T21:36:27","modified_gmt":"2024-04-29T13:36:27","slug":"%e6%88%91%e8%a6%81%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8spring-cloud-stream%ef%bc%88redis%ef%bc%89%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%a6%81%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8spring-cloud-stream%ef%bc%88redis%ef%bc%89%e3%80%82\/","title":{"rendered":"\u6211\u8981\u5c1d\u8bd5\u4f7f\u7528Spring Cloud Stream\uff08redis\uff09"},"content":{"rendered":"<h1>\u9996\u5148<\/h1>\n<p>\u6211\u6700\u8fd1\u8bd5\u7528\u4e86\u65b0\u7684Spring Cloud Stream\u3002\u9996\u5148\u4eceRedis\u5f00\u59cb\u4f7f\u7528\u793a\u4f8b\u3002\u7531\u4e8eSpring Cloud Stream\u7684\u5feb\u901f\u5165\u95e8\u6ca1\u6709\u6210\u529f\uff0c\u6240\u4ee5\u6211\u5c1d\u8bd5\u4f7f\u7528IntelliJ\u7684Spring Initializr\u3002<\/p>\n<h1>\u73af\u5883<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Mac<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">IntelliJ<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">redis(\u9069\u5f53\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304f)<\/ul>\n<h1>\u6b65\u9aa4 (b\u00f9<\/h1>\n<h2>\u4f7f\u7528IntelliJ\u521b\u5efa\u9879\u76ee<\/h2>\n<p>\u5229\u7528\u6628\u5929\u4ecb\u7ecd\u7684IntelliJ\u7684Spring Initializr\u529f\u80fd\u3002<\/p>\n<h3>\u8bf7\u6253\u5f00\u521b\u5efa\u9879\u76ee\u83dc\u5355\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3e2237434c4406c89eba\/8-0.png\" alt=\"image\" \/><\/div>\n<h3>\u4ece\u5de6\u4fa7\u7a97\u683c\u4e2d\u9009\u62e9\u201cSpring Initializr\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201cNext\u201d\u6309\u94ae\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3e2237434c4406c89eba\/10-0.png\" alt=\"image\" \/><\/div>\n<h3>\u968f\u610f\u7ed9\u300cName\u300d\u53d6\u4e2a\u540d\u5b57\uff0c\u7136\u540e\u70b9\u51fb\u300cNext\u300d\u6309\u94ae\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3e2237434c4406c89eba\/12-0.png\" alt=\"image\" \/><\/div>\n<h3>\u5728\u300c\u4f9d\u8d56\u5173\u7cfb\u300d\u4e2d\u9009\u62e9&#8220;\uff0c\u7136\u540e\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u6309\u94ae\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3e2237434c4406c89eba\/14-0.png\" alt=\"image\" \/><\/div>\n<h3>\u8bf7\u968f\u610f\u8f93\u5165\u201c\u9879\u76ee\u540d\u79f0\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u6309\u94ae\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3e2237434c4406c89eba\/16-0.png\" alt=\"image\" \/><\/div>\n<h3>\u5f53Gradle\u7684\u8bbe\u7f6e\u754c\u9762\u51fa\u73b0\u540e\uff0c\u8bf7\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u6309\u94ae\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3e2237434c4406c89eba\/18-0.png\" alt=\"image\" \/><\/div>\n<h3>\u9879\u76ee\u5b8c\u6210\u4e86<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3e2237434c4406c89eba\/20-0.png\" alt=\"image\" \/><\/div>\n<h2>\u8bd5\u7740\u4ee5\u9ed8\u8ba4\u72b6\u6001\u542f\u52a8<\/h2>\n<h3>\u542f\u52a8Redis<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3e2237434c4406c89eba\/23-0.png\" alt=\"image\" \/><\/div>\n<h3>\u542f\u52a8\u7531IntelliJ\u81ea\u52a8\u751f\u6210\u7684&#8221;SpringCloudDemoApplication&#8221;\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3e2237434c4406c89eba\/25-0.png\" alt=\"image\" \/><\/div>\n<h3>\u5982\u679c\u542f\u52a8\u65f6\u6ca1\u6709\u51fa\u73b0\u9519\u8bef\uff0c\u5c31\u53ef\u4ee5\u4e86\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3e2237434c4406c89eba\/27-0.png\" alt=\"image\" \/><\/div>\n<h1>\u8fd0\u884c\u793a\u4f8b<\/h1>\n<p>\u4eceSpring Cloud Stream\u7684GitHub\u793a\u4f8b\u4e2d\u83b7\u53d6\u53ef\u4ee5\u4f7f\u7528\u7684\u6e90\u4ee3\u7801\u3002<\/p>\n<h2>\u643a\u5e26Source\u6837\u672c\u6765<\/h2>\n<p>Spring Cloud Stream\u7684Source\u5728\u8f93\u5165\u4fe1\u606f\u65b9\u9762\u8d77\u5230\u4e86\u4f5c\u7528\uff0c\u7b80\u800c\u8a00\u4e4b\u5c31\u662f\u5c06\u4fe1\u606f\u8f93\u5165\u5230Redis\u4e2d\u3002<br \/>\n\u5c06\u4ee5\u4e0b3\u4e2asource\u793a\u4f8b\u590d\u5236\u5230\u81ea\u52a8\u751f\u6210\u7684SpringCloudDemoApplication.java\u6240\u5728\u7684\u540c\u4e00\u4e2a\u5305\u4e2d\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">DateFormat.java<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">TimeSource.java<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">TimeSourceOptionsMetadata<\/ul>\n<h3>\u4eceGitHub\u4e0a\u514b\u9686<\/h3>\n<pre class=\"post-pre\"><code>cd \/tmp\r\ngit clone https:\/\/github.com\/spring-cloud\/spring-cloud-stream.git\r\n<\/code><\/pre>\n<h3>\u4f7f\u7528Finder\u5de5\u5177\uff0c\u5c06\u4e09\u4e2a\u6587\u4ef6\u590d\u5236\u5e76\u7c98\u8d34\u5230IntelliJ\u7684SpringCloudDemoApplication.java\u6587\u4ef6\u6240\u5728\u7684\u76f8\u540c\u5305\u4e2d\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3e2237434c4406c89eba\/36-0.png\" alt=\"image\" \/><\/div>\n<h3>\u5c06\u5176\u590d\u5236\u5230IntelliJ\u5f00\u53d1\u73af\u5883\u4e2d<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3e2237434c4406c89eba\/38-0.png\" alt=\"image\" \/><\/div>\n<h3>\u5c06application.properties\u91cd\u547d\u540d\u4e3ayml\u3002<\/h3>\n<p>\u56e0\u4e3a\u6837\u672c\u662f\u4ee5yml\u5f62\u5f0f\u63d0\u4f9b\u7684\uff0c\u6240\u4ee5\u9700\u8981\u5c06\u81ea\u52a8\u751f\u6210\u7684application.properties\u66f4\u6539\u4e3aapplication.yml\u3002<\/p>\n<h4>\u53f3\u952e\u70b9\u51fb\u6587\u4ef6\uff0c\u9009\u62e9\u300c\u91cd\u6784\u300d\u6216\u300c\u91cd\u547d\u540d\u300d\u3002<\/h4>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3e2237434c4406c89eba\/42-0.png\" alt=\"image\" \/><\/div>\n<h4>\u5728application.yml\u4e2d\u5c06\u540d\u79f0\u66f4\u6539\u4e3a&#8221;Refactor&#8221;\uff0c\u7136\u540e\u70b9\u51fb&#8221;Refactor&#8221;\u6309\u94ae\u3002<\/h4>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3e2237434c4406c89eba\/44-0.png\" alt=\"image\" \/><\/div>\n<h3>\u5c06\u793a\u4f8b\u7684application.yml\u6587\u4ef6\u5185\u5bb9\u590d\u5236\u5e76\u7c98\u8d34\u5230\u6211\u91cd\u547d\u540d\u7684\u9879\u76ee\u7684application.yml\u6587\u4ef6\u4e2d\u3002<\/h3>\n<pre class=\"post-pre\"><code>server:\r\n  port: 8080\r\nfixedDelay: 5000\r\nspring:\r\n  cloud:\r\n    stream:\r\n      bindings:\r\n        output:\r\n          destination: testtock\r\n          contentType: text\/plain\r\n        # uncomment below to use the last digit of the seconds as a partition key\r\n        # hashcode(key) % N is then applied with N being the partitionCount value\r\n        # thus, even seconds should go to the 0 queue, odd seconds to the 1 queue\r\n        #producerProperties:\r\n        #  partitionKeyExpression: payload.charAt(payload.length()-1)\r\n        #  partitionCount: 2\r\n\r\n---\r\nspring:\r\n  profiles: extended\r\n  cloud:\r\n    stream:\r\n      bindings:\r\n        output: xformed\r\n<\/code><\/pre>\n<h3>\u89e3\u51b3\u7f16\u8bd1\u9519\u8bef<\/h3>\n<p>\u5f53\u4f60\u7b80\u5355\u5730\u590d\u5236Source\u7684\u6837\u672c\u65f6\uff0c\u4f1a\u51fa\u73b0\u65e0\u6cd5\u4f7f\u7528ConfigurationProperties\u7684\u9519\u8bef\u3002\u5728Intellj\u7f16\u8f91\u5668\u7684\u9876\u90e8\u4f1a\u663e\u793a\u7c7b\u4f3c\u4e8eSpring Boot Configuration Annotation Processor not in classpath&#8230;\u7684\u9519\u8bef\uff0c\u540c\u65f6\u8fd8\u4f1a\u663e\u793a\u6253\u5f00\u6587\u6863\u7684\u94fe\u63a5\uff0c\u8bf7\u70b9\u51fb\u8be5\u94fe\u63a5\u3002<\/p>\n<h4>spring-boot-configuration-processor\u7684\u89c4\u5b9a<\/h4>\n<p>\u4e3a\u4e86\u4f7f\u7528\u81ea\u5b9a\u4e49\u6ce8\u91ca\uff0cconfiguration-processor\u9700\u8981\u6765\u89e3\u51b3\u9519\u8bef\u7684\u95ee\u9898\u3002\u6211\u4fee\u6539\u4e86build.gradle\u6587\u4ef6\uff0c\u540c\u65f6\u63d0\u4f9b\u4ee5\u4e0b\u9875\u9762\u4e0apropdeps-plugin\u94fe\u63a5\u7684\u4fe1\u606f\u3002<\/p>\n<p>\u66f4\u6539\u70b9<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">buildscript.repositories\u306bmaven { url &#8216;http:\/\/repo.spring.io\/plugins-release&#8217; }\u3092\u8ffd\u52a0<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">buildscript.dependencies\u306bclasspath(&#8220;org.springframework.build.gradle:propdeps-plugin:0.0.7&#8221;)\u3092\u8ffd\u52a0<\/ul>\n<\/li>\n<\/ul>\n<p>configure(allprojects)\u3092\u8ffd\u52a0<\/p>\n<p>compileJava.dependsOn(processResources)\u3092\u8ffd\u52a0<br \/>\ndependencies\u306boptional(&#8220;org.springframework.boot:spring-boot-configuration-processor&#8221;)\u3092\u8ffd\u52a0<\/p>\n<pre class=\"post-pre\"><code>buildscript {\r\n    ext {\r\n        springBootVersion = '1.3.0.RELEASE'\r\n    }\r\n    repositories {\r\n        mavenCentral()\r\n        maven { url 'http:\/\/repo.spring.io\/plugins-release' }\r\n    }\r\n    dependencies {\r\n        classpath(\"org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}\")\r\n        classpath(\"org.springframework.build.gradle:propdeps-plugin:0.0.7\")\r\n    }\r\n}\r\n\r\napply plugin: 'java'\r\napply plugin: 'eclipse'\r\napply plugin: 'idea'\r\napply plugin: 'spring-boot' \r\n\r\njar {\r\n    baseName = 'demo'\r\n    version = '0.0.1-SNAPSHOT'\r\n}\r\nsourceCompatibility = 1.8\r\ntargetCompatibility = 1.8\r\n\r\nconfigure(allprojects) {\r\n    apply plugin: 'propdeps'\r\n    apply plugin: 'propdeps-maven'\r\n    apply plugin: 'propdeps-idea'\r\n    apply plugin: 'propdeps-eclipse'\r\n}\r\n\r\nrepositories {\r\n    mavenCentral()\r\n    maven { url \"https:\/\/repo.spring.io\/snapshot\" }\r\n    maven { url \"https:\/\/repo.spring.io\/milestone\" }\r\n}\r\n\r\ncompileJava.dependsOn(processResources)\r\n\r\ndependencies {\r\n    compile('org.springframework.cloud:spring-cloud-starter-stream-redis')\r\n    optional(\"org.springframework.boot:spring-boot-configuration-processor\")\r\n    testCompile('org.springframework.boot:spring-boot-starter-test')\r\n}\r\n\r\n\r\ndependencyManagement {\r\n    imports { \r\n        mavenBom \"org.springframework.cloud:spring-cloud-starter-parent:Brixton.M3\" \r\n    }\r\n}\r\n\r\n\r\neclipse {\r\n    classpath {\r\n         containers.remove('org.eclipse.jdt.launching.JRE_CONTAINER')\r\n         containers 'org.eclipse.jdt.launching.JRE_CONTAINER\/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType\/JavaSE-1.8'\r\n    }\r\n}\r\n\r\ntask wrapper(type: Wrapper) {\r\n    gradleVersion = '2.7'\r\n}\r\n\r\n<\/code><\/pre>\n<p>\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u91cd\u65b0\u6784\u5efagradle\u5e94\u8be5\u80fd\u591f\u89e3\u51b3\u9519\u8bef\u3002<\/p>\n<h3>\u4f7f\u7528IntelliJ\u542f\u52a8&#8221;SpringCloudDemoApplication&#8221;\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3e2237434c4406c89eba\/56-0.png\" alt=\"image\" \/><\/div>\n<h2>\u4e5f\u8981\u521b\u5efaSink\u4fa7\u3002<\/h2>\n<p>\u4f7f\u5f97\u6e90\u7aef\u5c06\u5199\u5165 Redis \u7684\u65f6\u95f4\u4fe1\u606f\u4e5f\u4f20\u8f93\u7ed9\u63a5\u6536\u7aef\u8fdb\u884c\u6837\u672c\u5904\u7406\u3002<\/p>\n<p>\u91cd\u590d\u4e4b\u524d\u7684\u6b65\u9aa4\uff0c\u521b\u5efa\u4e00\u4e2aSink\u9879\u76ee\uff0c\u5e76\u590d\u5236Sink\u7684\u793a\u4f8b\uff0c\u4ee5\u4fbf\u80fd\u591f\u4f7f\u7528\u5b83\u3002<br \/>\n\u203b\u7531\u4e8e\u6b65\u9aa4\u76f8\u540c\uff0c\u6545\u4e0d\u518d\u91cd\u590d\u89e3\u91ca\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3e2237434c4406c89eba\/60-0.png\" alt=\"image\" \/><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u6211\u6700\u8fd1\u8bd5\u7528\u4e86\u65b0\u7684Spring Cloud Stream\u3002\u9996\u5148\u4eceRedis\u5f00\u59cb\u4f7f\u7528\u793a\u4f8b\u3002\u7531\u4e8eSpring  [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-40052","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6211\u8981\u5c1d\u8bd5\u4f7f\u7528Spring Cloud Stream\uff08redis\uff09 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u8981\u5c1d\u8bd5\u4f7f\u7528spring-cloud-stream\uff08redis\uff09\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6211\u8981\u5c1d\u8bd5\u4f7f\u7528Spring Cloud Stream\uff08redis\uff09\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u6211\u6700\u8fd1\u8bd5\u7528\u4e86\u65b0\u7684Spring Cloud Stream\u3002\u9996\u5148\u4eceRedis\u5f00\u59cb\u4f7f\u7528\u793a\u4f8b\u3002\u7531\u4e8eSpring [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u8981\u5c1d\u8bd5\u4f7f\u7528spring-cloud-stream\uff08redis\uff09\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-06T13:02:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T13:36:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3e2237434c4406c89eba\/8-0.png\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%a6%81%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8spring-cloud-stream%ef%bc%88redis%ef%bc%89%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%a6%81%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8spring-cloud-stream%ef%bc%88redis%ef%bc%89%e3%80%82\/\",\"name\":\"\u6211\u8981\u5c1d\u8bd5\u4f7f\u7528Spring Cloud Stream\uff08redis\uff09 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-03-06T13:02:24+00:00\",\"dateModified\":\"2024-04-29T13:36:27+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%a6%81%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8spring-cloud-stream%ef%bc%88redis%ef%bc%89%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%a6%81%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8spring-cloud-stream%ef%bc%88redis%ef%bc%89%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%a6%81%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8spring-cloud-stream%ef%bc%88redis%ef%bc%89%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6211\u8981\u5c1d\u8bd5\u4f7f\u7528Spring Cloud Stream\uff08redis\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%a6%81%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8spring-cloud-stream%ef%bc%88redis%ef%bc%89%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u6211\u8981\u5c1d\u8bd5\u4f7f\u7528Spring Cloud Stream\uff08redis\uff09 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u8981\u5c1d\u8bd5\u4f7f\u7528spring-cloud-stream\uff08redis\uff09\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6211\u8981\u5c1d\u8bd5\u4f7f\u7528Spring Cloud Stream\uff08redis\uff09","og_description":"\u9996\u5148 \u6211\u6700\u8fd1\u8bd5\u7528\u4e86\u65b0\u7684Spring Cloud Stream\u3002\u9996\u5148\u4eceRedis\u5f00\u59cb\u4f7f\u7528\u793a\u4f8b\u3002\u7531\u4e8eSpring [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u8981\u5c1d\u8bd5\u4f7f\u7528spring-cloud-stream\uff08redis\uff09\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-03-06T13:02:24+00:00","article_modified_time":"2024-04-29T13:36:27+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3e2237434c4406c89eba\/8-0.png"}],"author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%a6%81%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8spring-cloud-stream%ef%bc%88redis%ef%bc%89%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%a6%81%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8spring-cloud-stream%ef%bc%88redis%ef%bc%89%e3%80%82\/","name":"\u6211\u8981\u5c1d\u8bd5\u4f7f\u7528Spring Cloud Stream\uff08redis\uff09 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-03-06T13:02:24+00:00","dateModified":"2024-04-29T13:36:27+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%a6%81%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8spring-cloud-stream%ef%bc%88redis%ef%bc%89%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%a6%81%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8spring-cloud-stream%ef%bc%88redis%ef%bc%89%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%a6%81%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8spring-cloud-stream%ef%bc%88redis%ef%bc%89%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6211\u8981\u5c1d\u8bd5\u4f7f\u7528Spring Cloud Stream\uff08redis\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%a6%81%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8spring-cloud-stream%ef%bc%88redis%ef%bc%89%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40052","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=40052"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40052\/revisions"}],"predecessor-version":[{"id":87781,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40052\/revisions\/87781"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=40052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=40052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=40052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}