{"id":10008273,"date":"2023-09-18T20:27:52","date_gmt":"2023-09-18T12:27:52","guid":{"rendered":"https:\/\/blog.itmax.cn\/?p=10008273"},"modified":"2023-09-18T20:27:52","modified_gmt":"2023-09-18T12:27:52","slug":"nginx-spring-boot-%e8%bd%bb%e6%9d%be%e5%ae%9e%e7%8e%b0%e8%b4%9f%e8%bd%bd%e5%9d%87%e8%a1%a1%ef%bc%8c%e8%bf%98%e6%9c%89%e8%b0%81%e4%b8%8d%e4%bc%9a%ef%bc%9f%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10008273","title":{"rendered":"Nginx + Spring Boot \u8f7b\u677e\u5b9e\u73b0\u8d1f\u8f7d\u5747\u8861\uff0c\u8fd8\u6709\u8c01\u4e0d\u4f1a\uff1f\uff1f"},"content":{"rendered":"<p>\u6765\u6e90\uff1a\u865a\u65e0\u5883\u7684\u535a\u5ba2\/<br \/>\u5730\u5740\uff1awww.cnblogs.com\/xuwujing\/p\/11953697.html<\/p>\n<p>\u5728\u4ecb\u7ecdNginx\u7684\u8d1f\u8f7d\u5747\u8861\u5b9e\u73b0\u4e4b\u524d\uff0c\u5148\u7b80\u5355\u7684\u8bf4\u4e0b\u8d1f\u8f7d\u5747\u8861\u7684\u5206\u7c7b\uff0c\u4e3b\u8981\u5206\u4e3a<strong>\u786c\u4ef6\u8d1f\u8f7d\u5747\u8861\u548c\u8f6f\u4ef6\u8d1f\u8f7d\u5747\u8861<\/strong>\uff0c\u786c\u4ef6\u8d1f\u8f7d\u5747\u8861\u662f\u4f7f\u7528\u4e13\u95e8\u7684\u8f6f\u4ef6\u548c\u786c\u4ef6\u76f8\u7ed3\u5408\u7684\u8bbe\u5907\uff0c\u8bbe\u5907\u5546\u4f1a\u63d0\u4f9b\u5b8c\u6574\u6210\u719f\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u6bd4\u5982F5\uff0c\u5728\u6570\u636e\u7684\u7a33\u5b9a\u6027\u4ee5\u53ca\u5b89\u5168\u6027\u6765\u8bf4\u975e\u5e38\u53ef\u9760\uff0c\u4f46\u662f\u76f8\u6bd4\u8f6f\u4ef6\u800c\u8a00\u9020\u4ef7\u4f1a\u66f4\u52a0\u6602\u8d35\uff1b\u8f6f\u4ef6\u7684\u8d1f\u8f7d\u5747\u8861\u4ee5Nginx\u8fd9\u7c7b\u8f6f\u4ef6\u4e3a\u4e3b\uff0c\u5b9e\u73b0\u7684\u4e00\u79cd\u6d88\u606f\u961f\u5217\u5206\u53d1\u673a\u5236\u3002<\/p>\n<p>\u7b80\u5355\u6765\u8bf4\u6240\u8c13\u7684\u8d1f\u8f7d\u5747\u8861\u5c31\u662f\u628a\u5f88\u591a\u8bf7\u6c42\u8fdb\u884c\u5206\u6d41\uff0c\u5c06\u4ed6\u4eec\u5206\u914d\u5230\u4e0d\u540c\u7684\u670d\u52a1\u5668\u53bb\u5904\u7406\u3002\u6bd4\u5982\u6211\u67093\u4e2a\u670d\u52a1\u5668\uff0c\u5206\u522b\u4e3aA\u3001B\u3001C\uff0c\u7136\u540e\u4f7f\u7528Nginx\u8fdb\u884c\u8d1f\u8f7d\u5747\u8861\uff0c\u4f7f\u7528\u8f6e\u8be2\u7b56\u7565\uff0c\u6b64\u65f6\u5982\u679c\u6536\u5230\u4e869\u4e2a\u8bf7\u6c42\uff0c\u90a3\u4e48\u4f1a\u5747\u5300\u7684\u5c06\u8fd99\u4e2a\u8bf7\u6c42\u5206\u53d1\u7ed9A\u3001B\u3001Cf\u670d\u52a1\u5668\uff0c\u6bcf\u4e00\u4e2a\u670d\u52a1\u5668\u5904\u74063\u4e2a\u8bf7\u6c42\uff0c\u8fd9\u6837\u7684\u8bdd\u6211\u4eec\u53ef\u4ee5\u5229\u7528\u591a\u53f0\u673a\u5668\u96c6\u7fa4\u7684\u7279\u6027\u51cf\u5c11\u5355\u4e2a\u670d\u52a1\u5668\u7684\u538b\u529b\u3002<\/p>\n<p>Nginx\u5b9e\u73b0\u8d1f\u8f7d\u5747\u8861\u7684\u793a\u4f8b\u56fe:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"723\" height=\"412\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc9JsZ\" alt=\"\" title=\"\"><\/p>\n<h3>\u8d1f\u8f7d\u5747\u8861\u7b56\u7565<\/h3>\n<p>NGINX\u5f00\u6e90\u652f\u6301\u56db\u79cd\u8d1f\u8f7d\u5e73\u8861\u65b9\u6cd5\uff0c\u800cNGINX Plus\u53c8\u589e\u52a0\u4e86\u4e24\u79cd\u65b9\u6cd5\u3002<\/p>\n<p>1.Round Robin: \u5bf9\u6240\u6709\u7684\u8bf7\u6c42\u8fdb\u884c\u8f6e\u8be2\u53d1\u9001\u8bf7\u6c42\uff0c\u9ed8\u8ba4\u7684\u5206\u914d\u65b9\u5f0f\u3002<\/p>\n<p>nginx.conf \u914d\u7f6e\u793a\u4f8b:<\/p>\n<pre><code>upstream xuwujing {\n   server www.panchengming.com;\n   server www.panchengming2.com;\n}<\/code><\/pre>\n<p><strong>\u6ce8:\u4e0a\u9762\u7684\u57df\u540d\u4e5f\u53ef\u4ee5\u7528IP\u66ff\u4ee3\u3002<\/strong><\/p>\n<p>2.Least Connections\uff1a\u4ee5\u6700\u5c11\u7684\u6d3b\u52a8\u8fde\u63a5\u6570\u5c06\u8bf7\u6c42\u53d1\u9001\u5230\u670d\u52a1\u5668\uff0c\u540c\u6837\u8981\u8003\u8651\u670d\u52a1\u5668\u6743\u91cd\u3002<\/p>\n<p>nginx.conf \u914d\u7f6e\u793a\u4f8b:<\/p>\n<pre><code>upstream xuwujing {\n    least_conn;\n    server www.panchengming.com;\n    server www.panchengming2.com;\n}<\/code><\/pre>\n<p>3.IP Hash : \u53d1\u9001\u8bf7\u6c42\u7684\u670d\u52a1\u5668\u7531\u5ba2\u6237\u673aIP\u5730\u5740\u51b3\u5b9a\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528IPv4\u5730\u5740\u7684\u524d\u4e09\u4e2a\u5b57\u8282\u6216\u6574\u4e2aIPv6\u5730\u5740\u6765\u8ba1\u7b97\u6563\u5217\u503c\u3002\u8be5\u65b9\u6cd5\u4fdd\u8bc1\u6765\u81ea\u76f8\u540c\u5730\u5740\u7684\u8bf7\u6c42\u5230\u8fbe\u76f8\u540c\u7684\u670d\u52a1\u5668\uff0c\u9664\u975e\u8be5\u670d\u52a1\u5668\u4e0d\u53ef\u7528\u3002<\/p>\n<pre><code>upstream xuwujing {\n     ip_hash;\n     server www.panchengming.com;\n     server www.panchengming2.com;\n}<\/code><\/pre>\n<p>4.Generic Hash: \u8bf7\u6c42\u53d1\u9001\u5230\u7684\u670d\u52a1\u5668\u7531\u7528\u6237\u5b9a\u4e49\u7684\u952e\u51b3\u5b9a\uff0c\u8be5\u952e\u53ef\u4ee5\u662f\u6587\u672c\u5b57\u7b26\u4e32\u3001\u53d8\u91cf\u6216\u7ec4\u5408\u3002<\/p>\n<pre><code>upstream xuwujing {\n    hash $request_uri consistent;\n    server www.panchengming.com;\n      server www.panchengming2.com;\n}<\/code><\/pre>\n<p>5.Least Time (NGINX Plus only) \u2013 \u5bf9\u4e8e\u6bcf\u4e2a\u8bf7\u6c42\uff0cNGINX Plus\u9009\u62e9\u5177\u6709\u6700\u4f4e\u5e73\u5747\u5ef6\u8fdf\u548c\u6700\u4f4e\u6d3b\u52a8\u8fde\u63a5\u6570\u7684\u670d\u52a1\u5668\uff0c\u5176\u4e2d\u6700\u4f4e\u5e73\u5747\u5ef6\u8fdf\u662f\u6839\u636e\u5305\u542bleast_time\u6307\u4ee4\u7684\u4e0b\u5217\u53c2\u6570\u8ba1\u7b97\u7684:<\/p>\n<pre><code>header \uff1a \u4ece\u670d\u52a1\u5668\u63a5\u6536\u7b2c\u4e00\u4e2a\u5b57\u8282\u7684\u65f6\u95f4\u3002\nlast_byte\uff1a \u4ece\u670d\u52a1\u5668\u63a5\u6536\u5b8c\u6574\u54cd\u5e94\u7684\u65f6\u95f4\u3002\nlast_byte inflight\uff1a\u4ece\u670d\u52a1\u5668\u63a5\u6536\u5b8c\u6574\u54cd\u5e94\u7684\u65f6\u95f4\u3002\n\nupstream xuwujing {\n    least_time header;\n    server www.panchengming.com;\n    server www.panchengming2.com;\n}<\/code><\/pre>\n<p>6.Random\uff1a\u6bcf\u4e2a\u8bf7\u6c42\u5c06\u88ab\u4f20\u9012\u5230\u968f\u673a\u9009\u62e9\u7684\u670d\u52a1\u5668\u3002\u5982\u679c\u6307\u5b9a\u4e86\u4e24\u4e2a\u53c2\u6570\uff0c\u9996\u5148\uff0cNGINX\u6839\u636e\u670d\u52a1\u5668\u6743\u91cd\u968f\u673a\u9009\u62e9\u4e24\u4e2a\u670d\u52a1\u5668\uff0c\u7136\u540e\u4f7f\u7528\u6307\u5b9a\u7684\u65b9\u6cd5\u9009\u62e9\u5176\u4e2d\u4e00\u4e2a\u3002<\/p>\n<pre><code>least_conn \uff1a\u6d3b\u52a8\u8fde\u63a5\u7684\u6700\u5c11\u6570\u91cf\nleast_time=header (NGINX Plus)\uff1a\u4ece\u670d\u52a1\u5668\u63a5\u6536\u54cd\u5e94\u6807\u5934\u7684\u6700\u77ed\u5e73\u5747\u65f6\u95f4 ($upstream_header_time)\u3002\nleast_time=last_byte (NGINX Plus) \uff1a\u4ece\u670d\u52a1\u5668\u63a5\u6536\u5b8c\u6574\u54cd\u5e94\u7684\u6700\u77ed\u5e73\u5747\u65f6\u95f4\uff08$upstream_response_time\uff09\u3002\nupstream xuwujing {\n    random two least_time=last_byte;\n    server www.panchengming.com;\n    server www.panchengming2.com;\n}<\/code><\/pre>\n<h3>Nginx+SpringBoot\u5b9e\u73b0\u8d1f\u8f7d\u5747\u8861<\/h3>\n<h4>\u73af\u5883\u51c6\u5907<\/h4>\n<ul>\n<li>\u4f9d\u8d56JDK1.8\u4ee5\u4e0a\u7684\u7248\u672c\uff1b<\/li>\n<li>\u4f9d\u8d56Nginx\u73af\u5883\uff1b<\/li>\n<\/ul>\n<p>\u8fd9\u91cc\u7684\u9879\u76ee\u5c31\u7528\u672c\u4eba\u4e4b\u524d\u7684\u4e00\u4e2aspringboot\u9879\u76ee\uff0cSpringBoot\u7684\u9879\u76ee\u5730\u5740: <a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=sJVahQ%2BuQ7ojl3Vs2%2FkI0Q%3D%3D.VjnBUpVd5%2BUk89AZMGOnZeik8vZt047kqQVSMLncnV09IJhtPgCGhS0%2BX0Yf6vCaLMkgOr5ofXnbbAbEI%2Fnxgw%3D%3D\" rel=\"noopener noreferrer\">https:\/\/github.com\/javastacks\/spring-boot-best-practice<\/a><\/p>\n<p>\u9996\u5148\u6211\u4eec\u4e0b\u8f7d\u8fd9\u4e2a\u9879\u76ee\uff0c\u8f93\u5165:<code>mvn clean package<\/code> \u5c06\u9879\u76ee\u8fdb\u884c\u6253\u5305\u4e3ajar\u6587\u4ef6,\u7136\u540e\u5c06<code>application.properties<\/code>\u548c\u6b64jar\u9879\u76ee\u653e\u5728\u4e00\u4e2a\u6587\u4ef6\u5939\u4e2d\uff0c\u7136\u540e\u590d\u5236\u8be5\u6587\u4ef6\u5939(\u8fd9\u91cc\u4e3a\u4e86\u6e05\u6670\u6240\u4ee5\u8fdb\u884c\u590d\u5236\uff0c\u5b9e\u9645\u4e0d\u590d\u5236\u66f4\u6539\u7aef\u53e3\u91cd\u542f\u4e5f\u884c)\uff0c\u4fee\u6539\u590d\u5236\u6587\u4ef6\u5939<code>application.properties<\/code>\u7684\u7aef\u53e3\uff0c\u6bd4\u5982\u6539\u4e3a8086\u3002<\/p>\n<h4>Nginx \u914d\u7f6e<\/h4>\n<p>\u6211\u4eec\u627e\u5230nginx\u7684\u914d\u7f6e\u6587\u4ef6nginx.conf\uff0c\u8be5\u914d\u7f6e\u5728<strong>nginx\/conf\/nginx.conf<\/strong>\u76ee\u5f55\u4e0b\uff0c\u7136\u540e\u6211\u4eec\u6765\u4fee\u6539\u8be5\u914d\u7f6e\uff0c\u65b0\u589e\u5982\u4e0b\u914d\u7f6e:<\/p>\n<pre><code>upstream pancm{\n   server 127.0.0.1:8085;\n   server 127.0.0.1:8086;\n}<\/code><\/pre>\n<ul>\n<li>upstream pancm\uff1a\u5b9a\u4e49\u4e00\u4e2a\u540d\u79f0\uff0c\u968f\u610f\u5c31\u884c\uff1b<\/li>\n<li>server + ip:\u7aef\u53e3 or \u57df\u540d\uff1b<\/li>\n<\/ul>\n<p>\u5982\u679c\u4e0d\u60f3\u4f7f\u7528Round Robin\u7b56\u7565\uff0c\u4e5f\u53ef\u4ee5\u6362\u6210\u5176\u4ed6\u7684\u3002<\/p>\n<p>\u7136\u540e\u5728server\u6dfb\u52a0\/\u4fee\u6539\u5982\u4e0b\u914d\u7f6e:<\/p>\n<pre><code> server {\n    listen       80;\n    server_name  127.0.0.1;\n\n    location \/ {\n        root   html;\n        proxy_pass http:\/\/pancm;\n        proxy_connect_timeout 3s;\n        proxy_read_timeout 5s;\n        proxy_send_timeout 3s;\n        index  index.html index.htm;\n    }\n\n    error_page   500 502 503 504  \/50x.html;\n    location = \/50x.html {\n        root   html;\n    }\n}<\/code><\/pre>\n<p>\u914d\u7f6e\u8bf4\u660e:<\/p>\n<ul>\n<li>server: \u865a\u62df\u4e3b\u673a\u7684\u540d\u79f0\uff0c\u4e00\u4e2ahttp\u4e2d\u53ef\u4ee5\u914d\u7f6e\u591a\u4e2aserver\uff1b<\/li>\n<li>listen\uff1aNginx\u9ed8\u8ba4\u7684\u7aef\u53e3\uff1b<\/li>\n<li>server_name\uff1aNginx\u670d\u52a1\u7684\u5730\u5740\uff0c\u53ef\u4ee5\u4f7f\u7528\u57df\u540d\uff0c\u591a\u4e2a\u7528\u7a7a\u683c\u5206\u9694\u3002<\/li>\n<li>proxy_pass\uff1a\u4ee3\u7406\u8def\u5f84\uff0c\u4e00\u822c\u914d\u7f6eupstream\u540e\u9762\u7684\u540d\u79f0\u7528\u4e8e\u5b9e\u73b0\u8d1f\u8f7d\u5747\u8861\uff0c\u53ef\u4ee5\u76f4\u63a5\u914d\u7f6eip\u8fdb\u884c\u8df3\u8f6c\uff1b<\/li>\n<\/ul>\n<p><strong>nginx.conf \u5b8c\u6574\u7684\u914d\u7f6e:<\/strong><\/p>\n<pre><code>events {\n    worker_connections  1024;\n}\n\nerror_log nginx-error.log info;\nhttp {\n    include       mime.types;\n    default_type  application\/octet-stream;\n    sendfile        on;\n    keepalive_timeout  65;\n\n      upstream pancm{\n       server 127.0.0.1:8085;\n       server 127.0.0.1:8086;\n    }\n\n    server {\n        listen       80;\n        server_name  127.0.0.1;\n\n        location \/ {\n            root   html;\n            proxy_pass http:\/\/pancm;\n            proxy_connect_timeout 3s;\n            proxy_read_timeout 5s;\n            proxy_send_timeout 3s;\n            index  index.html index.htm;\n        }\n\n        error_page   500 502 503 504  \/50x.html;\n        location = \/50x.html {\n            root   html;\n        }\n    }\n}<\/code><\/pre>\n<h4>\u8d1f\u8f7d\u5747\u8861\u6d4b\u8bd5<\/h4>\n<p>\u5728\u5b8c\u6210Nginx\u914d\u7f6e\u4e4b\u540e\uff0c\u542f\u52a8Nginx\u3002<\/p>\n<p>\u8f93\u5165<code>\/usr\/local\/nginx\/sbin\/nginx -c \/usr\/local\/nginx\/conf\/nginx.conf<\/code>\uff0c\u5982\u679c\u5df2\u7ecf\u542f\u52a8\u53ef\u4ee5\u4f7f\u7528<code>\/usr\/local\/nginx\/sbin\/nginx -s reload<\/code>\u547d\u4ee4\u8fdb\u884c\u70ed\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\uff0c<strong>Windows<\/strong>\u76f4\u63a5\u70b9\u51fbNginx\u76ee\u5f55\u4e0b\u7684<code>nginx.exe<\/code>\u6216\u8005 <code>cmd<\/code>\u8fd0\u884c<code>start nginx<\/code>\u8fdb\u884c\u542f\u52a8\uff0c\u5982\u679c\u542f\u52a8\u4e86\u4f9d\u65e7\u53ef\u4ee5\u4f7f\u7528<code>nginx -s reload<\/code>\u8fdb\u884c\u70ed\u52a0\u8f7d\u3002<\/p>\n<p>Nginx\u542f\u52a8\u5b8c\u6210\u4e4b\u540e\uff0c\u6211\u4eec\u4f9d\u6b21\u542f\u52a8\u521a\u521a\u4e0b\u8f7d\u7684springboot\u548c\u590d\u5236\u66f4\u6539\u7aef\u53e3\u7684\u9879\u76ee\uff0c\u8f93\u5165:<code>java -jar springboot-jsp-thymeleaf.jar<\/code>\u542f\u52a8\u3002<\/p>\n<p>\u90fd\u542f\u52a8\u6210\u529f\u4e4b\u540e\uff0c\u6211\u4eec\u5728\u6d4f\u89c8\u5668\u8f93\u5165\u670d\u52a1\u7684ip\u5373\u53ef\u8fdb\u884c\u8bbf\u95ee\u3002<\/p>\n<p>\u793a\u4f8b\u56fe:<img decoding=\"async\" width=\"723\" height=\"243\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc9Js0\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p><strong>\u6ce8:\u8fd9\u91cc\u6211\u4f7f\u7528\u7684\u662fwindows\u7cfb\u7edf\u505a\u6d4b\u8bd5\uff0c\u5b9e\u9645linux\u4e5f\u662f\u4e00\u6837\u7684\u3002<\/strong><\/p>\n<p>\u7136\u540e\u6211\u4eec\u8fdb\u884c\u64cd\u4f5c\uff0c\u5e76\u67e5\u770b\u63a7\u5236\u53f0\u65e5\u5fd7\uff01<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"367\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc9Js1\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u4ece\u4e0a\u8ff0\u793a\u4f8b\u56fe\u4e2d\u6211\u4eec\u8fdb\u884c4\u6b21\u754c\u9762\u5237\u65b0\u8bf7\u6c42\uff0c\u6700\u7ec8\u5e73\u5747\u5206\u914d\u5230\u4e24\u4e2a\u670d\u52a1\u4e2d\u53bb\u4e86\uff0c\u4ece\u4e0a\u8ff0\u7684\u6d4b\u8bd5\u7ed3\u679c\u4e2d\u6211\u4eec\u5b9e\u73b0\u4e86\u8d1f\u8f7d\u5747\u8861\u3002<\/p>\n<p><strong>\u8fd9\u91cc\u6211\u5728\u8bf4\u4e00\u4e0b\u4f7f\u7528Nginx\u7684\u6ce8\u610f\u4e8b\u9879\uff1a<\/strong><\/p>\n<p>\u5728\u8fdb\u884c\u5b66\u4e60\u548c\u6d4b\u8bd5\u7684\u65f6\u5019\uff0c\u4f7f\u7528nginx\u9ed8\u8ba4\u7684\u7aef\u53e3\u5b9e\u73b0\u8d1f\u8f7d\u5747\u8861\u4e00\u822c\u6ca1\u6709\u4ec0\u4e48\u95ee\u9898\uff0c\u4f46\u662f\u5f53\u6211\u4eec\u5728\u9879\u76ee\u4e2d\u4f7f\u7528\u7684\u65f6\u5019\uff0c\u7279\u522b\u6709\u767b\u5f55\u754c\u9762\u7684\u5e76\u4e14\u7aef\u53e3\u4e0d\u662f80\u7684\u65f6\u5019\uff0c\u4f1a\u51fa\u73b0\u767b\u5f55\u7684\u754c\u9762\u65e0\u6cd5\u8df3\u8f6c\u3002<\/p>\n<p>\u8fdb\u884c\u8c03\u8bd5\u7684\u8bdd\u4f1a\u51fa\u73b0 <strong>net::ERR_NAME_NOT_RESOLVED<\/strong>\u8fd9\u6837\u7684\u9519\u8bef\uff0c\u51fa\u73b0\u8fd9\u4e2a\u539f\u56e0\u7684\u662f\u56e0\u4e3anginx\u9ed8\u8ba4\u7684\u7aef\u53e3\u662f80\uff0c\u90a3\u4e48\u9ed8\u8ba4\u8df3\u8f6c\u7684\u4e5f\u662f\u8fd9\u4e2a\uff0c\u6240\u4ee5\u51fa\u73b0\u8fd9\u79cd\u60c5\u51b5\u7684\u65f6\u5019\uff0c\u9700\u8981\u5728location \u4e0b\u6dfb\u52a0proxy_set_header Host $host:port \u8fd9\u4e2a\u914d\u7f6e\uff0cport \u548clisten \u7684\u7aef\u53e3\u4fdd\u6301\u4e00\u81f4\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p><strong>\u8fd1\u671f\u70ed\u6587\u63a8\u8350\uff1a<\/strong><\/p>\n<p>1.<a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=6pcKcx4wTkd8EJfEYEIqYw%3D%3D.vYKb9elqUoD5ihuqA2x2ehywVunECY7qKXos6zLsl4A%3D\" rel=\"noopener noreferrer\">1,000+ \u9053 Java\u9762\u8bd5\u9898\u53ca\u7b54\u6848\u6574\u7406(2022\u6700\u65b0\u7248)<\/a><\/p>\n<p>2.<a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=dudd5ydRsf9lp7ieuMrG7Q%3D%3D.Lb0BOYai%2FY4G8cBjE6z4OL86CnBC2OE8PO3kvEvYjeLUlA39PyWLmfEMebX8fEwjo1hEe07NcuwVMdD3w0kUrg%3D%3D\" rel=\"noopener noreferrer\">\u52b2\u7206\uff01Java \u534f\u7a0b\u8981\u6765\u4e86\u3002\u3002\u3002<\/a><\/p>\n<p>3.<a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=7%2B%2FFk0idaW%2FTbC%2BjrGmaxg%3D%3D.trBPSi%2FsONDANExSYbzZ3lQZ4EPukGXIEfGaVFidZRgxSRnQHnRVfyek3X2G44hG\" rel=\"noopener noreferrer\">Spring Boot 2.x \u6559\u7a0b\uff0c\u592a\u5168\u4e86\uff01<\/a><\/p>\n<p>4.<a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=v3XJS5VRcA16J%2BASnvxd7g%3D%3D.lIKFofegDU4f0cGfdHNbNOiYK%2FdzYQ%2BSr4rD3x%2BR%2B0kE5C%2BFy%2FJzgypdAluxo08RGbn7eZ88p9tWfRGVTt%2FBKA%3D%3D\" rel=\"noopener noreferrer\">\u522b\u518d\u5199\u6ee1\u5c4f\u7684\u7206\u7206\u7206\u70b8\u7c7b\u4e86\uff0c\u8bd5\u8bd5\u88c5\u9970\u5668\u6a21\u5f0f\uff0c\u8fd9\u624d\u662f\u4f18\u96c5\u7684\u65b9\u5f0f\uff01\uff01<\/a><\/p>\n<p>5.<a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=zsA0QQTi7ajcTIJotZEIVQ%3D%3D.OXoA38P207LxvrUx0Ys3YCPSONair%2BKHhX3ydgiyamT9sjYF4W496%2FJLLlpj2a5TxHMFjzfEh%2BfVgoAzTdCCkSovW4RTnrgEIt%2BKxU8S0l0%3D\" rel=\"noopener noreferrer\">\u300aJava\u5f00\u53d1\u624b\u518c\uff08\u5d69\u5c71\u7248\uff09\u300b\u6700\u65b0\u53d1\u5e03\uff0c\u901f\u901f\u4e0b\u8f7d\uff01<\/a><\/p>\n<p>\u89c9\u5f97\u4e0d\u9519\uff0c\u522b\u5fd8\u4e86\u968f\u624b\u70b9\u8d5e+\u8f6c\u53d1\u54e6\uff01<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000044226390\">https:\/\/segmentfault.com\/a\/1190000044226390<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6765\u6e90\uff1a\u865a\u65e0\u5883\u7684\u535a\u5ba2\/\u5730\u5740\uff1awww.cnblogs.com\/xuwujing\/p\/11953697.html \u5728 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10008273","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10008273"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008273\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10008273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10008273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10008273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}