{"id":760,"date":"2023-07-11T17:59:00","date_gmt":"2023-07-11T09:59:00","guid":{"rendered":"https:\/\/zhaocunwei.co.uk\/?p=760"},"modified":"2023-07-11T18:05:10","modified_gmt":"2023-07-11T10:05:10","slug":"711","status":"publish","type":"post","link":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/11\/711\/","title":{"rendered":"Java\u5b9e\u73b0\u79d2\u6740\u7cfb\u7edf\uff0c\u600e\u4e48\u89e3\u51b3\u5e76\u53d1\u548c\u5e93\u5b58\u4e0d\u88ab\u51fb\u7a7f"},"content":{"rendered":"<h1>\u524d\u8a00<\/h1>\n<p>\u603b\u7ed3Java\u5b9e\u73b0\u79d2\u6740\u7cfb\u7edf\u8bbe\u8ba1\u65b9\u6848<\/p>\n<h1>\u65b9\u6848\u5982\u4e0b<\/h1>\n<p>\u4e3a\u4e86\u5b9e\u73b0\u79d2\u6740\u7cfb\u7edf,\u9700\u8981\u89e3\u51b3\u9ad8\u5e76\u53d1\u548c\u9632\u6b62\u5e93\u5b58\u88ab\u51fb\u7a7f\u4e24\u4e2a\u4e3b\u8981\u95ee\u9898\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9bJava\u5b9e\u73b0\u79d2\u6740\u7cfb\u7edf\u7684\u5efa\u8bae:<\/p>\n<ol>\n<li>\u4f7f\u7528Redis\u7b49\u5185\u5b58\u6570\u636e\u5e93\u4f5c\u4e3a\u5e93\u5b58\u548c\u8ba2\u5355\u6570\u636e\u7684\u5b58\u50a8,\u51cf\u5c11\u6570\u636e\u5e93\u8bbf\u95ee\u538b\u529b\u3002<\/li>\n<li>\u4f7f\u7528\u6d88\u606f\u961f\u5217,\u5c06\u8ba2\u5355\u4fe1\u606f\u5f02\u6b65\u5165\u5e93,\u964d\u4f4e\u540e\u7aef\u538b\u529b\u3002\u53ef\u4ee5\u4f7f\u7528RabbitMQ\u6216Kafka\u7b49\u3002<\/li>\n<li>\u5bf9\u8ba2\u5355\u4e1a\u52a1\u903b\u8f91\u4f7f\u7528\u5206\u5e03\u5f0f\u9501,\u5982Redis\u7684SETNX\u547d\u4ee4,\u9632\u6b62\u540c\u4e00\u4e2a\u5546\u54c1\u88ab\u91cd\u590d\u4e0b\u5355\u5bfc\u81f4\u8d85\u5356\u3002<\/li>\n<li>\u4f7f\u7528\u7f13\u5b58(Redis)\u9884\u70ed\u70ed\u70b9\u5546\u54c1\u5e93\u5b58\u6570\u91cf,\u51cf\u5c11\u6570\u636e\u5e93\u8bbf\u95ee\u3002<\/li>\n<li>\u5bf9\u4e0b\u5355\u63a5\u53e3\u8fdb\u884c\u9650\u6d41,\u6bd4\u5982\u4f7f\u7528Guava\u7684RateLimiter,\u63a7\u5236\u8bf7\u6c42\u6d41\u91cf\u5728\u7cfb\u7edf\u627f\u53d7\u80fd\u529b\u8303\u56f4\u5185\u3002<\/li>\n<li>\u524d\u7aef\u4f7f\u7528CDN\u7f13\u5b58\u9759\u6001\u8d44\u6e90,\u51cf\u5c11\u540e\u7aef\u538b\u529b\u3002<\/li>\n<li>\u5bf9\u4e0b\u5355\u63a5\u53e3\u8fdb\u884c\u9632\u5237\u5904\u7406,\u5982\u8c37\u6b4c reCAPTCHA \u9a8c\u8bc1\u7801,\u9650\u5236\u673a\u5668\u4eba\u6076\u610f\u5237\u5355\u3002<\/li>\n<li>\u6309\u7528\u6237\u5206\u6279\u4e0b\u5355,\u6bcf\u6279\u6b21\u53ea\u5141\u8bb8\u9650\u5b9a\u6570\u91cf\u7684\u8bf7\u6c42,\u7136\u540e\u4f11\u7720\u4e00\u5c0f\u6bb5\u65f6\u95f4\u518d\u5904\u7406\u4e0b\u4e00\u6279,\u4ee5\u5e73\u6ed1\u8bf7\u6c42\u6d41\u91cf\u3002<\/li>\n<li>\u91c7\u7528\u65e0\u72b6\u6001\u670d\u52a1\u8bbe\u8ba1,\u4f7f\u7528Nginx\u7b49\u505a\u53cd\u5411\u4ee3\u7406\u548c\u8d1f\u8f7d\u5747\u8861\u3002<\/li>\n<li>\u5782\u76f4\u62c6\u5206\u4e0b\u5355\u670d\u52a1,\u6309\u5546\u54c1 ID \u6765\u8def\u7531\u5206\u53d1\u8bf7\u6c42\u5230\u4e0d\u540c\u7684\u670d\u52a1\u5668\u3002<\/li>\n<\/ol>\n<h3>\u79d2\u6740\u7cfb\u7edf\u89e3\u51b3\u9ad8\u5e76\u53d1\u95ee\u9898\uff0c\u5177\u4f53\u4ee3\u7801\u5b9e\u73b0<\/h3>\n<ol>\n<li>\u4f7f\u7528Redis\u7684incr\u547d\u4ee4\u4f5c\u4e3a\u539f\u5b50\u81ea\u589e\u64cd\u4f5c,\u786e\u4fdd\u5546\u54c1\u5e93\u5b58\u6570\u91cf\u51c6\u786e:\n<pre><code class=\"language-java\">\/\/\u5546\u54c1\u5e93\u5b58\u6570\u91cf\u539f\u5b50\u81ea\u51cf\nLong stock = redisTemplate.opsForValue().increment(&quot;product_&quot; + productId, -1);<\/code><\/pre>\n<\/li>\n<li>\u5728Service\u5c42\u4f7f\u7528synchronized\u6216\u8005ReentrantLock\u8fdb\u884c\u52a0\u9501,\u9632\u6b62\u5e76\u53d1\u5bfc\u81f4\u7684\u8d85\u5356:\n<pre><code class=\"language-java\">\/\/Service\u5c42\u65b9\u6cd5\u52a0synchronized\u9501\npublic synchronized void orderProduct(int productId){\n\/\/\u4e0b\u5355\u903b\u8f91 \n}\n\/\/\u6216\u4f7f\u7528ReentrantLock\u52a0\u9501\nLock lock = new ReentrantLock(); \nlock.lock();\ntry{\n\/\/\u4e0b\u5355\u903b\u8f91\n}finally{\nlock.unlock()\n}<\/code><\/pre>\n<\/li>\n<li>\u4f7f\u7528Redis\u7684SETNX\u5b9e\u73b0\u5206\u5e03\u5f0f\u9501,\u9632\u6b62\u5206\u5e03\u5f0f\u73af\u5883\u4e0b\u7684\u5e76\u53d1:\n<pre><code class=\"language-java\">\/\/\u5360\u6709\u5206\u5e03\u5f0f\u9501\nif(redisTemplate.opsForValue().setIfAbsent(&quot;lock&quot;, &quot;1&quot;)){\n\/\/\u4e0b\u5355\u903b\u8f91\n\/\/\u91ca\u653e\u5206\u5e03\u5f0f\u9501\nredisTemplate.delete(&quot;lock&quot;);\n}<\/code><\/pre>\n<\/li>\n<li>\u4f7f\u7528Guava\u7684RateLimiter\u9650\u6d41,\u5e73\u6ed1\u7a81\u53d1\u6d41\u91cf:\n<pre><code class=\"language-java\">RateLimiter rateLimiter = RateLimiter.create(100); \/\/\u9650\u6d41\u5927\u5c0f100\nrateLimiter.acquire(); \/\/\u8bf7\u6c42\u9650\u6d41\n\/\/\u4e0b\u5355\u903b\u8f91<\/code><\/pre>\n<p>5.\u5f02\u6b65\u5904\u7406\u4e0b\u5355\u8bf7\u6c42:<\/p>\n<pre><code class=\"language-java\">\/\/\u63a5\u6536\u4e0b\u5355\u8bf7\u6c42,\u6254\u5230RabbitMQ\u961f\u5217\norderService.asyncOrder(order);\n\/\/\u6d88\u8d39\u7aef\u5f02\u6b65\u5904\u7406\u4e0b\u5355\u903b\u8f91\n@RabbitListener(queues=&quot;order_queue&quot;) \npublic void consumeOrder(Order order){\n\/\/\u4e0b\u5355\u903b\u8f91..\n}<\/code><\/pre>\n<h3>\u89e3\u51b3\u5e93\u5b58\u88ab\u51fb\u7a7f\u95ee\u9898\uff0c\u7279\u522b\u662f\u5f53\u5e93\u5b58\u6709\u4e00\u4e2a\uff0c\u7136\u540e\u4e24\u4e2a\u4eba\u540c\u65f6\u62a2\u5230\u9501\uff0c\u4ee3\u7801\u5b9e\u73b0<\/h3>\n<p>\u5e93\u5b58\u88ab\u51fb\u7a7f\u662f\u79d2\u6740\u573a\u666f\u4e0b\u5e38\u89c1\u7684\u95ee\u9898\u3002\u5f53\u5546\u54c1\u5e93\u5b58\u4ec5\u5269 1 \u4e2a\u65f6,\u5982\u679c\u4e0d\u505a\u7279\u6b8a\u5904\u7406,\u53ef\u80fd\u51fa\u73b0 2 \u4e2a\u7ebf\u7a0b\u540c\u65f6\u68c0\u67e5\u5e93\u5b58\u5747\u5927\u4e8e0\u7684\u60c5\u51b5,\u7136\u540e\u7ee7\u7eed\u6267\u884c\u51cf\u5e93\u5b58,\u8fd9\u5c31\u4f1a\u9020\u6210\u8d85\u5356\u3002<br \/>\n\u89e3\u51b3\u5e93\u5b58\u88ab\u51fb\u7a7f\u95ee\u9898\u7684Java\u4ee3\u7801\u5b9e\u73b0\u601d\u8def\u5982\u4e0b:<\/p>\n<\/li>\n<li>\u52a0\u9501 + \u4e8c\u6b21\u68c0\u67e5\n<pre><code class=\"language-java\">\/\/ \u52a0\u9501\nsynchronized(productId) {\n\/\/ \u83b7\u53d6\u5e93\u5b58\nint stock = getStockFromRedis(productId);\n\/\/ \u5e93\u5b58\u4e0d\u8db3,\u76f4\u63a5\u8fd4\u56de\nif(stock &lt;= 0) {\nreturn; \n}\n\/\/ \u4e8c\u6b21\u68c0\u67e5\u5e93\u5b58\nif(stock &gt; 1) { \n\/\/ \u51cf\u5e93\u5b58\nreduceStock(productId);\n\/\/ \u4e0b\u5355\n} else {\n\/\/ \u5e93\u5b58\u4e0d\u8db3\u63d0\u793a\n}\n}<\/code><\/pre>\n<p>\u4e0a\u9762\u4ee3\u7801\u5148\u5bf9\u5546\u54c1\u52a0\u9501,\u518d\u83b7\u53d6\u5e93\u5b58,\u5982\u679c\u5e93\u5b58\u4e0d\u8db3\u5219\u76f4\u63a5\u8fd4\u56de\u3002\u5982\u679c\u8fd8\u6709\u5e93\u5b58,\u5219\u518d\u8fdb\u884c\u4e8c\u6b21\u68c0\u67e5,\u8fd9\u4e2a\u65f6\u5019\u5373\u4f7f\u6709\u5e76\u53d1\u4e5f\u4e0d\u53ef\u80fd\u88ab\u51fb\u7a7f\u3002<\/p>\n<\/li>\n<li>\u4f7f\u7528\u5e93\u5b58\u9884\u51cf<br \/>\n\u76f4\u63a5\u5728\u53d6\u5e93\u5b58\u65f6\u5c31\u4f7f\u7528 decr \u547d\u4ee4\u628a\u5e93\u5b58\u51cf 1,\u5982\u679c\u51cf 1 \u6210\u529f\u5219\u4e0b\u5355,\u5982\u679c\u51cf 1 \u5931\u8d25\u5219\u8bf4\u660e\u5e93\u5b58\u4e0d\u8db3\u3002<\/p>\n<pre><code class=\"language-java\">\/\/ \u5e93\u5b58\u9884\u51cf\nboolean stockOk = redis.decr(productId) &gt; 0; \nif(stockOk) {\n\/\/ \u4e0b\u5355\n} else {\n\/\/ \u5e93\u5b58\u4e0d\u8db3\n}<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u5229\u7528\u4e86 Redis \u7684 decr \u539f\u5b50\u6027,\u4e5f\u53ef\u4ee5\u907f\u514d\u51fb\u7a7f\u3002<br \/>\n\u7efc\u4e0a,\u8981\u9632\u6b62\u51fb\u7a7f\u4e3b\u8981\u8fd8\u662f\u8981\u6b63\u786e\u4f7f\u7528\u52a0\u9501\u548c\u539f\u5b50\u64cd\u4f5c\u3002<\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u603b\u7ed3Java\u5b9e\u73b0\u79d2\u6740\u7cfb\u7edf\u8bbe\u8ba1\u65b9\u6848 \u65b9\u6848\u5982\u4e0b \u4e3a\u4e86\u5b9e\u73b0\u79d2\u6740\u7cfb\u7edf,\u9700\u8981\u89e3\u51b3\u9ad8\u5e76\u53d1\u548c\u9632\u6b62\u5e93\u5b58\u88ab\u51fb\u7a7f\u4e24\u4e2a\u4e3b\u8981\u95ee\u9898 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false},"categories":[1],"tags":[],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Java\u5b9e\u73b0\u79d2\u6740\u7cfb\u7edf\uff0c\u600e\u4e48\u89e3\u51b3\u5e76\u53d1\u548c\u5e93\u5b58\u4e0d\u88ab\u51fb\u7a7f - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug<\/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:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/11\/711\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java\u5b9e\u73b0\u79d2\u6740\u7cfb\u7edf\uff0c\u600e\u4e48\u89e3\u51b3\u5e76\u53d1\u548c\u5e93\u5b58\u4e0d\u88ab\u51fb\u7a7f - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\" \/>\n<meta property=\"og:description\" content=\"\u524d\u8a00 \u603b\u7ed3Java\u5b9e\u73b0\u79d2\u6740\u7cfb\u7edf\u8bbe\u8ba1\u65b9\u6848 \u65b9\u6848\u5982\u4e0b \u4e3a\u4e86\u5b9e\u73b0\u79d2\u6740\u7cfb\u7edf,\u9700\u8981\u89e3\u51b3\u9ad8\u5e76\u53d1\u548c\u9632\u6b62\u5e93\u5b58\u88ab\u51fb\u7a7f\u4e24\u4e2a\u4e3b\u8981\u95ee\u9898 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/11\/711\/\" \/>\n<meta property=\"og:site_name\" content=\"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-11T09:59:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-11T10:05:10+00:00\" \/>\n<meta name=\"author\" content=\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/11\/711\/\",\"url\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/11\/711\/\",\"name\":\"Java\u5b9e\u73b0\u79d2\u6740\u7cfb\u7edf\uff0c\u600e\u4e48\u89e3\u51b3\u5e76\u53d1\u548c\u5e93\u5b58\u4e0d\u88ab\u51fb\u7a7f - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\",\"isPartOf\":{\"@id\":\"https:\/\/zhaocunwei.co.uk\/#website\"},\"datePublished\":\"2023-07-11T09:59:00+00:00\",\"dateModified\":\"2023-07-11T10:05:10+00:00\",\"author\":{\"@id\":\"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4\"},\"breadcrumb\":{\"@id\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/11\/711\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/11\/711\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/11\/711\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/zhaocunwei.co.uk\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\u5b9e\u73b0\u79d2\u6740\u7cfb\u7edf\uff0c\u600e\u4e48\u89e3\u51b3\u5e76\u53d1\u548c\u5e93\u5b58\u4e0d\u88ab\u51fb\u7a7f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/#website\",\"url\":\"https:\/\/zhaocunwei.co.uk\/\",\"name\":\"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\",\"description\":\"This site shares programming bugs\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zhaocunwei.co.uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4\",\"name\":\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g\",\"caption\":\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\"},\"sameAs\":[\"http:\/\/zhaocunwei.co.uk\"],\"url\":\"https:\/\/zhaocunwei.co.uk\/index.php\/author\/18500103508163-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Java\u5b9e\u73b0\u79d2\u6740\u7cfb\u7edf\uff0c\u600e\u4e48\u89e3\u51b3\u5e76\u53d1\u548c\u5e93\u5b58\u4e0d\u88ab\u51fb\u7a7f - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","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:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/11\/711\/","og_locale":"zh_CN","og_type":"article","og_title":"Java\u5b9e\u73b0\u79d2\u6740\u7cfb\u7edf\uff0c\u600e\u4e48\u89e3\u51b3\u5e76\u53d1\u548c\u5e93\u5b58\u4e0d\u88ab\u51fb\u7a7f - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","og_description":"\u524d\u8a00 \u603b\u7ed3Java\u5b9e\u73b0\u79d2\u6740\u7cfb\u7edf\u8bbe\u8ba1\u65b9\u6848 \u65b9\u6848\u5982\u4e0b \u4e3a\u4e86\u5b9e\u73b0\u79d2\u6740\u7cfb\u7edf,\u9700\u8981\u89e3\u51b3\u9ad8\u5e76\u53d1\u548c\u9632\u6b62\u5e93\u5b58\u88ab\u51fb\u7a7f\u4e24\u4e2a\u4e3b\u8981\u95ee\u9898 [&hellip;]","og_url":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/11\/711\/","og_site_name":"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","article_published_time":"2023-07-11T09:59:00+00:00","article_modified_time":"2023-07-11T10:05:10+00:00","author":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/11\/711\/","url":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/11\/711\/","name":"Java\u5b9e\u73b0\u79d2\u6740\u7cfb\u7edf\uff0c\u600e\u4e48\u89e3\u51b3\u5e76\u53d1\u548c\u5e93\u5b58\u4e0d\u88ab\u51fb\u7a7f - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","isPartOf":{"@id":"https:\/\/zhaocunwei.co.uk\/#website"},"datePublished":"2023-07-11T09:59:00+00:00","dateModified":"2023-07-11T10:05:10+00:00","author":{"@id":"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4"},"breadcrumb":{"@id":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/11\/711\/#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/11\/711\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/11\/711\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/zhaocunwei.co.uk\/"},{"@type":"ListItem","position":2,"name":"Java\u5b9e\u73b0\u79d2\u6740\u7cfb\u7edf\uff0c\u600e\u4e48\u89e3\u51b3\u5e76\u53d1\u548c\u5e93\u5b58\u4e0d\u88ab\u51fb\u7a7f"}]},{"@type":"WebSite","@id":"https:\/\/zhaocunwei.co.uk\/#website","url":"https:\/\/zhaocunwei.co.uk\/","name":"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","description":"This site shares programming bugs","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zhaocunwei.co.uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":"Person","@id":"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4","name":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46","image":{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g","caption":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46"},"sameAs":["http:\/\/zhaocunwei.co.uk"],"url":"https:\/\/zhaocunwei.co.uk\/index.php\/author\/18500103508163-com\/"}]}},"_links":{"self":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/760"}],"collection":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=760"}],"version-history":[{"count":1,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/760\/revisions"}],"predecessor-version":[{"id":761,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/760\/revisions\/761"}],"wp:attachment":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}