{"id":1697,"date":"2025-04-11T00:20:52","date_gmt":"2025-04-10T16:20:52","guid":{"rendered":"http:\/\/codermr.com\/?p=1697"},"modified":"2025-04-11T00:20:52","modified_gmt":"2025-04-10T16:20:52","slug":"%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98","status":"publish","type":"post","link":"http:\/\/codermr.com\/index.php\/2025\/04\/11\/%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98\/","title":{"rendered":"\u4f7f\u7528Java\u547d\u4ee4\u8bbe\u7f6e\u7a0b\u5e8f\u6700\u5927\u5185\u5b58"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">\u4f7f\u7528Java\u547d\u4ee4\u8bbe\u7f6e\u7a0b\u5e8f\u6700\u5927\u5185\u5b58<\/h1>\n\n\n\n<p>\u5728Java\u4e2d\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570\u6765\u63a7\u5236JVM\u7684\u5185\u5b58\u4f7f\u7528\u3002\u4ee5\u4e0b\u662f\u8bbe\u7f6eJava\u7a0b\u5e8f\u6700\u5927\u5185\u5b58\u7684\u65b9\u6cd5\uff1a<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8bbe\u7f6e\u6700\u5927\u5806\u5185\u5b58\uff08\u6700\u5e38\u7528\uff09<\/h2>\n\n\n\n<p>\u4f7f\u7528 <code>-Xmx<\/code> \u53c2\u6570\u6765\u8bbe\u7f6eJava\u7a0b\u5e8f\u53ef\u4ee5\u4f7f\u7528\u7684\u6700\u5927\u5806\u5185\u5b58\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>java -Xmx2G -jar your_application.jar<\/code><\/pre>\n\n\n\n<p>\u4e0a\u9762\u7684\u4f8b\u5b50\u8bbe\u7f6e\u4e86\u6700\u5927\u5806\u5185\u5b58\u4e3a2GB\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u5355\u4f4d\uff1a<\/p>\n\n\n\n<ul>\n<li><code>k<\/code> \u6216 <code>K<\/code> \u8868\u793aKB\uff08\u5982 <code>-Xmx512k<\/code>\uff09<\/li>\n\n\n\n<li><code>m<\/code> \u6216 <code>M<\/code> \u8868\u793aMB\uff08\u5982 <code>-Xmx1024m<\/code>\uff09<\/li>\n\n\n\n<li><code>g<\/code> \u6216 <code>G<\/code> \u8868\u793aGB\uff08\u5982 <code>-Xmx2G<\/code>\uff09<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u540c\u65f6\u8bbe\u7f6e\u521d\u59cb\u548c\u6700\u5927\u5806\u5185\u5b58<\/h2>\n\n\n\n<p>\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528 <code>-Xms<\/code> \u8bbe\u7f6e\u521d\u59cb\u5806\u5927\u5c0f\uff0c<code>-Xmx<\/code> \u8bbe\u7f6e\u6700\u5927\u5806\u5927\u5c0f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>java -Xms512m -Xmx2G -jar your_application.jar<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u8bbe\u7f6e\u5176\u4ed6\u5185\u5b58\u533a\u57df<\/h2>\n\n\n\n<p>\u9664\u4e86\u5806\u5185\u5b58\uff0c\u4f60\u8fd8\u53ef\u4ee5\u63a7\u5236\u5176\u4ed6\u5185\u5b58\u533a\u57df\uff1a<\/p>\n\n\n\n<ol>\n<li><strong>\u5143\u7a7a\u95f4\uff08Metaspace\uff09<\/strong>\uff08Java 8+\u66ff\u4ee3\u6c38\u4e45\u4ee3\uff09\uff1a<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   java -XX:MaxMetaspaceSize=256m -jar your_app.jar<\/code><\/pre>\n\n\n\n<ol start=\"2\">\n<li><strong>\u6808\u5185\u5b58<\/strong>\uff1a<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   java -Xss256k -jar your_app.jar<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9e\u9645\u5e94\u7528\u793a\u4f8b<\/h2>\n\n\n\n<ol>\n<li>\u4e3aSpring Boot\u5e94\u7528\u8bbe\u7f6e4GB\u6700\u5927\u5185\u5b58\uff1a<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   java -Xmx4G -jar spring-boot-app.jar<\/code><\/pre>\n\n\n\n<ol start=\"2\">\n<li>\u8bbe\u7f6e\u521d\u59cb1GB\uff0c\u6700\u59274GB\u5185\u5b58\uff1a<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   java -Xms1G -Xmx4G -jar your_app.jar<\/code><\/pre>\n\n\n\n<ol start=\"3\">\n<li>\u8bbe\u7f6e\u5185\u5b58\u5e76\u6307\u5b9a\u5783\u573e\u56de\u6536\u5668\uff1a<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   java -Xmx2G -XX:+UseG1GC -jar your_app.jar<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u6ce8\u610f\u4e8b\u9879<\/h2>\n\n\n\n<ol>\n<li><strong>\u4e0d\u8981\u8d85\u8fc7\u7269\u7406\u5185\u5b58<\/strong>\uff1a\u8bbe\u7f6e\u7684\u6700\u5927\u5185\u5b58\u4e0d\u5e94\u8d85\u8fc7\u673a\u5668\u53ef\u7528\u7269\u7406\u5185\u5b58\uff0c\u5426\u5219\u4f1a\u5bfc\u81f4\u9891\u7e41\u7684\u4ea4\u6362\uff08swapping\uff09\uff0c\u4e25\u91cd\u5f71\u54cd\u6027\u80fd<\/li>\n\n\n\n<li><strong>32\u4f4d vs 64\u4f4dJVM<\/strong>\uff1a<\/li>\n<\/ol>\n\n\n\n<ul>\n<li>32\u4f4dJVM\u901a\u5e38\u9650\u5236\u57281.5-2GB\u5de6\u53f3<\/li>\n\n\n\n<li>64\u4f4dJVM\u53ef\u4ee5\u652f\u6301\u66f4\u5927\u7684\u5185\u5b58<\/li>\n<\/ul>\n\n\n\n<ol>\n<li><strong>\u5176\u4ed6\u5185\u5b58\u5360\u7528<\/strong>\uff1a<\/li>\n<\/ol>\n\n\n\n<ul>\n<li><code>-Xmx<\/code> \u53ea\u63a7\u5236\u5806\u5185\u5b58<\/li>\n\n\n\n<li>JVM\u8fd8\u4f1a\u4f7f\u7528\u975e\u5806\u5185\u5b58\uff08\u5982\u6808\u3001\u5143\u7a7a\u95f4\u7b49\uff09<\/li>\n\n\n\n<li>\u5b9e\u9645\u8fdb\u7a0b\u5360\u7528\u7684\u603b\u5185\u5b58\u4f1a\u6bd4 <code>-Xmx<\/code> \u8bbe\u7f6e\u7684\u503c\u66f4\u5927<\/li>\n<\/ul>\n\n\n\n<ol>\n<li><strong>\u5bb9\u5668\u73af\u5883<\/strong>\uff1a<\/li>\n<\/ol>\n\n\n\n<ul>\n<li>\u5728Docker\u7b49\u5bb9\u5668\u73af\u5883\u4e2d\u8fd0\u884c\u65f6\uff0c\u8fd8\u5e94\u8003\u8651\u5bb9\u5668\u5185\u5b58\u9650\u5236<\/li>\n\n\n\n<li>Java 8u131+\u548cJava 9+\u652f\u6301 <code>-XX:+UseCGroupMemoryLimitForHeap<\/code> \u9009\u9879<\/li>\n\n\n\n<li>Java 10+\u652f\u6301 <code>-XX:+UseContainerSupport<\/code>\uff08\u9ed8\u8ba4\u542f\u7528\uff09<\/li>\n<\/ul>\n\n\n\n<ol>\n<li><strong>\u76d1\u63a7\u5185\u5b58\u4f7f\u7528<\/strong>\uff1a<\/li>\n<\/ol>\n\n\n\n<ul>\n<li>\u53ef\u4ee5\u4f7f\u7528 <code>jcmd &lt;pid> VM.native_memory<\/code> \u67e5\u770b\u8be6\u7ec6\u5185\u5b58\u4f7f\u7528<\/li>\n\n\n\n<li>\u6216\u8005\u4f7f\u7528 <code>jstat -gc &lt;pid><\/code> \u67e5\u770b\u5783\u573e\u56de\u6536\u548c\u5806\u5185\u5b58\u60c5\u51b5<\/li>\n<\/ul>\n\n\n\n<p>\u901a\u8fc7\u5408\u7406\u8bbe\u7f6e\u8fd9\u4e9b\u53c2\u6570\uff0c\u53ef\u4ee5\u4f18\u5316Java\u5e94\u7528\u7a0b\u5e8f\u7684\u5185\u5b58\u4f7f\u7528\u548c\u6027\u80fd\u8868\u73b0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528Java\u547d\u4ee4\u8bbe\u7f6e\u7a0b\u5e8f\u6700\u5927\u5185\u5b58 \u5728Java\u4e2d\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570\u6765\u63a7\u5236JVM\u7684\u5185\u5b58\u4f7f\u7528\u3002\u4ee5\u4e0b\u662f\u8bbe\u7f6eJava&#8230;<\/p>\n","protected":false},"author":1,"featured_media":733,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528Java\u547d\u4ee4\u8bbe\u7f6e\u7a0b\u5e8f\u6700\u5927\u5185\u5b58 - \u7801\u5148\u751f\u7684\u535a\u5ba2<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/codermr.com\/index.php\/2025\/04\/11\/\u4f7f\u7528java\u547d\u4ee4\u8bbe\u7f6e\u7a0b\u5e8f\u6700\u5927\u5185\u5b58\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528Java\u547d\u4ee4\u8bbe\u7f6e\u7a0b\u5e8f\u6700\u5927\u5185\u5b58 - \u7801\u5148\u751f\u7684\u535a\u5ba2\" \/>\n<meta property=\"og:description\" content=\"\u4f7f\u7528Java\u547d\u4ee4\u8bbe\u7f6e\u7a0b\u5e8f\u6700\u5927\u5185\u5b58 \u5728Java\u4e2d\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570\u6765\u63a7\u5236JVM\u7684\u5185\u5b58\u4f7f\u7528\u3002\u4ee5\u4e0b\u662f\u8bbe\u7f6eJava...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/codermr.com\/index.php\/2025\/04\/11\/\u4f7f\u7528java\u547d\u4ee4\u8bbe\u7f6e\u7a0b\u5e8f\u6700\u5927\u5185\u5b58\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7801\u5148\u751f\u7684\u535a\u5ba2\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-10T16:20:52+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/java1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"444\" \/>\n\t<meta property=\"og:image:height\" content=\"317\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u7801\u5148\u751f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/mrcode2021\" \/>\n<meta name=\"twitter:site\" content=\"@mrcode2021\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u7801\u5148\u751f\" \/>\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\":\"Article\",\"@id\":\"http:\/\/codermr.com\/index.php\/2025\/04\/11\/%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2025\/04\/11\/%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98\/\"},\"author\":{\"name\":\"\u7801\u5148\u751f\",\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\"},\"headline\":\"\u4f7f\u7528Java\u547d\u4ee4\u8bbe\u7f6e\u7a0b\u5e8f\u6700\u5927\u5185\u5b58\",\"datePublished\":\"2025-04-10T16:20:52+00:00\",\"dateModified\":\"2025-04-10T16:20:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2025\/04\/11\/%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98\/\"},\"wordCount\":31,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\"},\"articleSection\":[\"JAVA\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/codermr.com\/index.php\/2025\/04\/11\/%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/codermr.com\/index.php\/2025\/04\/11\/%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98\/\",\"url\":\"http:\/\/codermr.com\/index.php\/2025\/04\/11\/%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98\/\",\"name\":\"\u4f7f\u7528Java\u547d\u4ee4\u8bbe\u7f6e\u7a0b\u5e8f\u6700\u5927\u5185\u5b58 - \u7801\u5148\u751f\u7684\u535a\u5ba2\",\"isPartOf\":{\"@id\":\"http:\/\/codermr.com\/#website\"},\"datePublished\":\"2025-04-10T16:20:52+00:00\",\"dateModified\":\"2025-04-10T16:20:52+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2025\/04\/11\/%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/codermr.com\/index.php\/2025\/04\/11\/%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/codermr.com\/index.php\/2025\/04\/11\/%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/codermr.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528Java\u547d\u4ee4\u8bbe\u7f6e\u7a0b\u5e8f\u6700\u5927\u5185\u5b58\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/codermr.com\/#website\",\"url\":\"http:\/\/codermr.com\/\",\"name\":\"\u7801\u5148\u751f\u7684\u535a\u5ba2\",\"description\":\"\u6b22 \u8fce \u4e0b \u8f7d \u6211 \u5f00 \u53d1 \u7684 \u5404 \u7aef \u8f6f \u4ef6 \u548c APP\",\"publisher\":{\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/codermr.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\",\"name\":\"\u7801\u5148\u751f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg\",\"contentUrl\":\"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg\",\"width\":400,\"height\":400,\"caption\":\"\u7801\u5148\u751f\"},\"logo\":{\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/codermr.com\",\"https:\/\/twitter.com\/https:\/\/twitter.com\/mrcode2021\"],\"url\":\"http:\/\/codermr.com\/index.php\/author\/coderma\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528Java\u547d\u4ee4\u8bbe\u7f6e\u7a0b\u5e8f\u6700\u5927\u5185\u5b58 - \u7801\u5148\u751f\u7684\u535a\u5ba2","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":"http:\/\/codermr.com\/index.php\/2025\/04\/11\/\u4f7f\u7528java\u547d\u4ee4\u8bbe\u7f6e\u7a0b\u5e8f\u6700\u5927\u5185\u5b58\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528Java\u547d\u4ee4\u8bbe\u7f6e\u7a0b\u5e8f\u6700\u5927\u5185\u5b58 - \u7801\u5148\u751f\u7684\u535a\u5ba2","og_description":"\u4f7f\u7528Java\u547d\u4ee4\u8bbe\u7f6e\u7a0b\u5e8f\u6700\u5927\u5185\u5b58 \u5728Java\u4e2d\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570\u6765\u63a7\u5236JVM\u7684\u5185\u5b58\u4f7f\u7528\u3002\u4ee5\u4e0b\u662f\u8bbe\u7f6eJava...","og_url":"http:\/\/codermr.com\/index.php\/2025\/04\/11\/\u4f7f\u7528java\u547d\u4ee4\u8bbe\u7f6e\u7a0b\u5e8f\u6700\u5927\u5185\u5b58\/","og_site_name":"\u7801\u5148\u751f\u7684\u535a\u5ba2","article_published_time":"2025-04-10T16:20:52+00:00","og_image":[{"width":444,"height":317,"url":"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/java1.jpg","type":"image\/jpeg"}],"author":"\u7801\u5148\u751f","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/mrcode2021","twitter_site":"@mrcode2021","twitter_misc":{"\u4f5c\u8005":"\u7801\u5148\u751f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/codermr.com\/index.php\/2025\/04\/11\/%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98\/#article","isPartOf":{"@id":"http:\/\/codermr.com\/index.php\/2025\/04\/11\/%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98\/"},"author":{"name":"\u7801\u5148\u751f","@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf"},"headline":"\u4f7f\u7528Java\u547d\u4ee4\u8bbe\u7f6e\u7a0b\u5e8f\u6700\u5927\u5185\u5b58","datePublished":"2025-04-10T16:20:52+00:00","dateModified":"2025-04-10T16:20:52+00:00","mainEntityOfPage":{"@id":"http:\/\/codermr.com\/index.php\/2025\/04\/11\/%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98\/"},"wordCount":31,"commentCount":0,"publisher":{"@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf"},"articleSection":["JAVA"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/codermr.com\/index.php\/2025\/04\/11\/%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/codermr.com\/index.php\/2025\/04\/11\/%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98\/","url":"http:\/\/codermr.com\/index.php\/2025\/04\/11\/%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98\/","name":"\u4f7f\u7528Java\u547d\u4ee4\u8bbe\u7f6e\u7a0b\u5e8f\u6700\u5927\u5185\u5b58 - \u7801\u5148\u751f\u7684\u535a\u5ba2","isPartOf":{"@id":"http:\/\/codermr.com\/#website"},"datePublished":"2025-04-10T16:20:52+00:00","dateModified":"2025-04-10T16:20:52+00:00","breadcrumb":{"@id":"http:\/\/codermr.com\/index.php\/2025\/04\/11\/%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/codermr.com\/index.php\/2025\/04\/11\/%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/codermr.com\/index.php\/2025\/04\/11\/%e4%bd%bf%e7%94%a8java%e5%91%bd%e4%bb%a4%e8%ae%be%e7%bd%ae%e7%a8%8b%e5%ba%8f%e6%9c%80%e5%a4%a7%e5%86%85%e5%ad%98\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/codermr.com\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528Java\u547d\u4ee4\u8bbe\u7f6e\u7a0b\u5e8f\u6700\u5927\u5185\u5b58"}]},{"@type":"WebSite","@id":"http:\/\/codermr.com\/#website","url":"http:\/\/codermr.com\/","name":"\u7801\u5148\u751f\u7684\u535a\u5ba2","description":"\u6b22 \u8fce \u4e0b \u8f7d \u6211 \u5f00 \u53d1 \u7684 \u5404 \u7aef \u8f6f \u4ef6 \u548c APP","publisher":{"@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/codermr.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf","name":"\u7801\u5148\u751f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/codermr.com\/#\/schema\/person\/image\/","url":"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg","contentUrl":"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg","width":400,"height":400,"caption":"\u7801\u5148\u751f"},"logo":{"@id":"http:\/\/codermr.com\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/codermr.com","https:\/\/twitter.com\/https:\/\/twitter.com\/mrcode2021"],"url":"http:\/\/codermr.com\/index.php\/author\/coderma\/"}]}},"_links":{"self":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/1697"}],"collection":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/comments?post=1697"}],"version-history":[{"count":1,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/1697\/revisions"}],"predecessor-version":[{"id":1698,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/1697\/revisions\/1698"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/media\/733"}],"wp:attachment":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/media?parent=1697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/categories?post=1697"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/tags?post=1697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}