{"id":3232,"date":"2023-11-02T17:20:08","date_gmt":"2023-11-02T09:20:08","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=3232"},"modified":"2023-11-02T17:20:08","modified_gmt":"2023-11-02T09:20:08","slug":"springboot-%e8%bf%90%e8%a1%8c%e5%86%85%e5%ad%98%e5%8f%8a%e5%86%85%e5%ad%98%e5%8f%82%e6%95%b0%e8%ae%be%e7%bd%ae%ef%bc%9a%e5%8a%a9%e5%8a%9b%e9%ab%98%e6%95%88%e5%ba%94%e7%94%a8%e9%83%a8%e7%bd%b2%e4%b8%8e","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/springboot-%e8%bf%90%e8%a1%8c%e5%86%85%e5%ad%98%e5%8f%8a%e5%86%85%e5%ad%98%e5%8f%82%e6%95%b0%e8%ae%be%e7%bd%ae%ef%bc%9a%e5%8a%a9%e5%8a%9b%e9%ab%98%e6%95%88%e5%ba%94%e7%94%a8%e9%83%a8%e7%bd%b2%e4%b8%8e\/","title":{"rendered":"SpringBoot \u8fd0\u884c\u5185\u5b58\u53ca\u5185\u5b58\u53c2\u6570\u8bbe\u7f6e\uff1a\u52a9\u529b\u9ad8\u6548\u5e94\u7528\u90e8\u7f72\u4e0e\u4f18\u5316"},"content":{"rendered":"<div class='wxsyncmain'>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"font-size: 16px;color: black;padding-right: 10px;padding-left: 10px;line-height: 1.6;letter-spacing: 0px;word-break: break-word;text-align: left;counter-reset: counterh1 0 counterh2 0 counterh3 0;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;\" data-mpa-powered-by=\"yiban.io\">\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">Spring Boot \u662f\u5f53\u4eca\u975e\u5e38\u6d41\u884c\u7684 Java \u5e94\u7528\u6846\u67b6\u4e4b\u4e00\uff0c\u5728\u4f01\u4e1a\u7ea7\u5e94\u7528\u5f00\u53d1\u4e2d\u88ab\u5e7f\u6cdb\u4f7f\u7528\u3002\u5e94\u7528\u90e8\u7f72\u548c\u4f18\u5316\u662f\u4f01\u4e1a\u7ea7\u5e94\u7528\u5f00\u53d1\u7684\u4e00\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u65b9\u9762\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5728\u8fd9\u7bc7\u535a\u5ba2\u4e2d\uff0c\u6211\u4eec\u5c06\u5b66\u4e60\u5982\u4f55\u638c\u63e1 Spring Boot \u8fd0\u884c\u5185\u5b58\u53ca\u5185\u5b58\u53c2\u6570\u8bbe\u7f6e\uff0c\u4ece\u800c\u52a9\u529b\u9ad8\u6548\u7684\u5e94\u7528\u90e8\u7f72\u548c\u4f18\u5316\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 22px;\"><span style=\"display: inline-block;\"><span style=\"counter-increment: counterh2;color: rgb(159,205,208);border-bottom: 4px solid rgb(159,205,208);font-size: 18px;padding: 2px 4px;\">1<\/span><\/span><span style=\"font-size: 18px;border-bottom: 4px solid rgb(37,132,181);padding: 2px 4px;color: rgb(37,132,181);\">\u4ec0\u4e48\u662f Java \u5185\u5b58\uff1f<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">Java \u5e94\u7528\u7a0b\u5e8f\u901a\u8fc7 Java \u865a\u62df\u673a\uff08JVM\uff09\u8fd0\u884c\u3002JVM \u8d1f\u8d23\u7ba1\u7406 Java \u5e94\u7528\u7a0b\u5e8f\u6240\u9700\u7684\u5185\u5b58\u3002JVM \u5185\u90e8\u5212\u5206\u4e86\u4e0d\u540c\u7684 \u5185\u5b58\u533a\u57df \uff0c\u5305\u62ec\u5806\uff08Heap\uff09\u3001\u6808\uff08Stack\uff09\u3001\u975e\u5806\uff08Non-Heap\uff09\u7b49\u4e0d\u540c\u7c7b\u578b\u7684\u5185\u5b58\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5176\u4e2d\uff0c\u5806\u5185\u5b58 \u662f Java \u7a0b\u5e8f\u8fd0\u884c\u65f6\u6700\u5e38\u7528\u7684\u5185\u5b58\u533a\u57df\uff0c\u4e3b\u8981\u7528\u4e8e\u5b58\u50a8 Java \u5bf9\u8c61\u3002Java \u5806\u5185\u5b58\u7684\u5927\u5c0f\u662f\u53d1\u751f OutOfMemoryError \u9519\u8bef\u7684\u4e3b\u8981\u539f\u56e0\u3002\u56e0\u6b64\uff0c\u5728\u90e8\u7f72\u548c\u4f18\u5316 Java \u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u6b63\u786e\u7684\u5185\u5b58\u8bbe\u7f6e\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 22px;\"><span style=\"display: inline-block;\"><span style=\"counter-increment: counterh2;color: rgb(159,205,208);border-bottom: 4px solid rgb(159,205,208);font-size: 18px;padding: 2px 4px;\">2<\/span><\/span><span style=\"font-size: 18px;border-bottom: 4px solid rgb(37,132,181);padding: 2px 4px;color: rgb(37,132,181);\">Spring Boot \u5185\u5b58\u8bbe\u7f6e<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u4e0b\u9762\u6211\u4eec\u5c06\u5b66\u4e60\u5728 Spring Boot \u4e2d\u5982\u4f55\u8bbe\u7f6e\u5185\u5b58\u53c2\u6570\u3002\u5728 Spring Boot \u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u4e24\u79cd\u65b9\u5f0f\u8bbe\u7f6e\u5185\u5b58\u53c2\u6570\u3002<\/p>\n<h5 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;\"><span style=\"display: none;\"><\/span>1. \u5728\u542f\u52a8\u811a\u672c\u4e2d\u8bbe\u7f6e\u5185\u5b58\u53c2\u6570<span style=\"display: none;\"><\/span><\/h5>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u542f\u52a8\u811a\u672c\u662f\u542f\u52a8 Spring Boot \u5e94\u7528\u7a0b\u5e8f\u7684\u811a\u672c\uff0c\u901a\u5e38\u662f\u4e00\u4e9b shell \u811a\u672c\u6216\u6279\u5904\u7406\u6587\u4ef6\u3002\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539\u542f\u52a8\u811a\u672c\u7684\u65b9\u5f0f\u8bbe\u7f6e\u5185\u5b58\u53c2\u6570\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5bf9\u4e8e Linux \u7cfb\u7edf\uff0c\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539 <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">*.sh<\/code> \u6587\u4ef6\u6765\u8bbe\u7f6e\u5185\u5b58\u53c2\u6570\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\u811a\u672c\uff0c\u53ef\u4ee5\u53c2\u8003\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: url(&quot;https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165422680.jpeg&quot;) 10px 10px \/ 40px no-repeat rgb(39, 40, 34);height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #ddd;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #272822;border-radius: 5px;\"><span style=\"color: #75715e;line-height: 26px;\">#\u8bbe\u7f6e\u6700\u5927\u5185\u5b58<\/span><span style=\"line-height: 26px;\">spring:<\/span><span style=\"line-height: 26px;\">datasource:<\/span><span style=\"line-height: 26px;\">tomcat:<\/span><span style=\"line-height: 26px;\">max-active:<\/span><span style=\"line-height: 26px;\">1024<\/span><span style=\"color: #75715e;line-height: 26px;\">#\u8bbe\u7f6e\u6700\u5c0f\u5185\u5b58<\/span><span style=\"line-height: 26px;\">min-idle:<\/span><span style=\"line-height: 26px;\">512<\/span><span style=\"color: #75715e;line-height: 26px;\">#\u8bbe\u7f6e\u5806\u5916\u5185\u5b58<\/span><span style=\"line-height: 26px;\">tomcat:<\/span><span style=\"line-height: 26px;\">max-connections:<\/span><span style=\"line-height: 26px;\">512<\/span><\/code><\/pre>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 22px;\"><span style=\"display: inline-block;\"><span style=\"counter-increment: counterh2;color: rgb(159,205,208);border-bottom: 4px solid rgb(159,205,208);font-size: 18px;padding: 2px 4px;\">3<\/span><\/span><span style=\"font-size: 18px;border-bottom: 4px solid rgb(37,132,181);padding: 2px 4px;color: rgb(37,132,181);\">\u5e38\u7528\u7684\u5185\u5b58\u53c2\u6570<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u770b\u5230\u4e86\u4e00\u4e9b\u4e0d\u540c\u7684\u5185\u5b58\u53c2\u6570\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u5185\u5b58\u53c2\u6570\uff1a<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong style=\"color: rgb(37, 132, 181);\"><code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">*Xmx*<\/code>\uff1a<\/strong>\u8bbe\u7f6e\u6700\u5927\u5806\u5185\u5b58\u5927\u5c0f\u3002\u4f8b\u5982\uff1a<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">-Xmx1024m<\/code><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong style=\"color: rgb(37, 132, 181);\"><code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">*Xms*<\/code>\uff1a<\/strong>\u8bbe\u7f6e\u6700\u5c0f\u5806\u5185\u5b58\u5927\u5c0f\u3002\u4f8b\u5982\uff1a<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">-Xms512m<\/code><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong style=\"color: rgb(37, 132, 181);\"><code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">*XX:MaxDirectMemorySize*<\/code>\uff1a<\/strong>\u8bbe\u7f6e\u5806\u5916\u5185\u5b58\u5927\u5c0f\u3002\u4f8b\u5982\uff1a<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">-XX:MaxDirectMemorySize=512m<\/code><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong style=\"color: rgb(37, 132, 181);\"><code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">*Xss*<\/code>\uff1a<\/strong>\u8bbe\u7f6e\u7ebf\u7a0b\u6808\u5185\u5b58\u5927\u5c0f\u3002\u4f8b\u5982\uff1a-Xss256k<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong style=\"color: rgb(37, 132, 181);\"><code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">*XX:PermSize*<\/code>\uff1a<\/strong>\u8bbe\u7f6e\u6c38\u4e45\u4ee3\u5185\u5b58\u5927\u5c0f\uff08\u4ec5\u9002\u7528\u4e8e JDK 8 \u53ca\u66f4\u65e9\u7248\u672c\uff09\u3002\u4f8b\u5982\uff1a<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">-XX:PermSize=256m<\/code><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong style=\"color: rgb(37, 132, 181);\"><code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">*XX:MaxPermSize*<\/code>\uff1a<\/strong>\u8bbe\u7f6e\u6c38\u4e45\u4ee3\u5185\u5b58\u6700\u5927\u5927\u5c0f\uff08\u4ec5\u9002\u7528\u4e8e JDK 8 \u53ca\u66f4\u65e9\u7248\u672c\uff09\u3002\u4f8b\u5982\uff1a<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">-XX:MaxPermSize=512m<\/code><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong style=\"color: rgb(37, 132, 181);\"><code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">*XX:MaxMetaspaceSize*<\/code>\uff1a<\/strong>\u8bbe\u7f6e\u5143\u7a7a\u95f4\u5185\u5b58\u5927\u5c0f\uff08\u9002\u7528\u4e8e JDK 8 \u53ca\u66f4\u9ad8\u7248\u672c\uff09\u3002\u4f8b\u5982\uff1a<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">-XX:MaxMetaspaceSize=256m<\/code><\/p>\n<\/section>\n<\/li>\n<\/ul>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 22px;\"><span style=\"display: inline-block;\"><span style=\"counter-increment: counterh2;color: rgb(159,205,208);border-bottom: 4px solid rgb(159,205,208);font-size: 18px;padding: 2px 4px;\">4<\/span><\/span><span style=\"font-size: 18px;border-bottom: 4px solid rgb(37,132,181);padding: 2px 4px;color: rgb(37,132,181);\">\u5982\u4f55\u4f18\u5316 Spring Boot \u5e94\u7528\u7a0b\u5e8f\u7684\u5185\u5b58\u4f7f\u7528<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5728\u90e8\u7f72\u548c\u4f18\u5316\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u6b63\u786e\u7684\u5185\u5b58\u8bbe\u7f6e\u5f88\u91cd\u8981\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u8fd8\u53ef\u4ee5\u91c7\u53d6\u4ee5\u4e0b\u63aa\u65bd\u6765\u4f18\u5316 Spring Boot \u5e94\u7528\u7a0b\u5e8f\u7684\u5185\u5b58\u4f7f\u7528\uff1a<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\"><strong style=\"color: rgb(37, 132, 181);\">\u51cf\u5c0f\u5b57\u6bb5\u548c\u65b9\u6cd5\u6570\u91cf\u3002<\/strong> \u5728\u9879\u76ee\u4e2d\u675c\u7edd\u8fc7\u5ea6\u4f7f\u7528\u9759\u6001\u65b9\u6cd5\u548c\u9759\u6001\u53d8\u91cf\uff08\u5c24\u5176\u662f\u5355\u4f8b\u6a21\u5f0f\uff09\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\"><strong style=\"color: rgb(37, 132, 181);\">\u4f7f\u7528\u57fa\u672c\u6570\u636e\u7c7b\u578b\u66ff\u4ee3\u5305\u88c5\u7c7b\u578b\uff08\u5982\u4f7f\u7528int\u66ff\u4ee3Integer\uff09<\/strong>\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\"><strong style=\"color: rgb(37, 132, 181);\">\u5173\u95ed\u5f00\u53d1\u6a21\u5f0f\u3002<\/strong> \u5728\u751f\u4ea7\u73af\u5883\u4e2d\u5173\u95ed Spring Boot \u7684\u5f00\u53d1\u6a21\u5f0f\u53ef\u4ee5\u8282\u7ea6\u5185\u5b58\u4f7f\u7528\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\"><strong style=\"color: rgb(37, 132, 181);\">\u4f7f\u7528\u7f13\u5b58\u673a\u5236\u3002<\/strong> \u4f7f\u7528\u7f13\u5b58\u673a\u5236\u53ef\u4ee5\u51cf\u5c11\u5e94\u7528\u7a0b\u5e8f\u7684\u5185\u5b58\u4f7f\u7528\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\"><strong style=\"color: rgb(37, 132, 181);\">\u8003\u8651\u4f7f\u7528\u8fde\u63a5\u6c60\u3002<\/strong> \u8fde\u63a5\u6c60\u53ef\u4ee5\u51cf\u5c11\u5e94\u7528\u7a0b\u5e8f\u7684\u5185\u5b58\u4f7f\u7528\uff0c\u63d0\u9ad8\u6548\u7387\u3002<\/section>\n<\/li>\n<\/ul>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 22px;\"><span style=\"display: inline-block;\"><span style=\"counter-increment: counterh2;color: rgb(159,205,208);border-bottom: 4px solid rgb(159,205,208);font-size: 18px;padding: 2px 4px;\">5<\/span><\/span><span style=\"font-size: 18px;border-bottom: 4px solid rgb(37,132,181);padding: 2px 4px;color: rgb(37,132,181);\">\u7ed3\u8bba<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5728\u672c\u7bc7\u535a\u5ba2\u4e2d\uff0c\u6211\u4eec\u5b66\u4e60\u4e86\u5982\u4f55\u8bbe\u7f6e Spring Boot \u7684\u5185\u5b58\u53c2\u6570\uff0c\u5e76\u63a2\u8ba8\u4e86\u4e00\u4e9b\u5e38\u7528\u7684 Java \u5185\u5b58\u53c2\u6570\u3002\u4f18\u5316\u5e94\u7528\u7a0b\u5e8f\u4f7f\u7528\u5185\u5b58\u662f\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u7a33\u5b9a\u548c\u9ad8\u6548\u7684\u91cd\u8981\u65b9\u9762\uff0c\u91c7\u53d6\u9002\u5f53\u7684\u63aa\u65bd\u53ef\u4ee5\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5e0c\u671b\u672c\u7bc7\u535a\u5ba2\u53ef\u4ee5\u5e2e\u52a9\u4f60\u638c\u63e1 Spring Boot \u8fd0\u884c\u5185\u5b58\u53ca\u5185\u5b58\u53c2\u6570\u8bbe\u7f6e\uff0c\u52a9\u529b\u9ad8\u6548\u5e94\u7528\u90e8\u7f72\u548c\u4f18\u5316\u3002<\/p>\n<\/section>\n<p style=\"margin-bottom: 0px;outline: 0px;font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;text-wrap: wrap;color: rgb(0, 0, 0);font-size: 16px;background-color: rgb(255, 255, 255);text-align: center;\"><span style=\"outline: 0px;letter-spacing: 0.544px;color: rgb(136, 136, 136);visibility: visible;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 12px;\">\u6765\u6e90\uff5cblog.csdn.net\/weixin_46780832\/<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;text-wrap: wrap;color: rgb(0, 0, 0);font-size: 16px;background-color: rgb(255, 255, 255);text-align: center;\"><span style=\"outline: 0px;letter-spacing: 0.544px;color: rgb(136, 136, 136);visibility: visible;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 12px;\">article\/details\/129198609<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;text-wrap: wrap;color: rgb(0, 0, 0);font-size: 16px;background-color: rgb(255, 255, 255);text-align: center;\"><span style=\"outline: 0px;letter-spacing: 0.544px;color: rgb(136, 136, 136);visibility: visible;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 12px;\"><\/span><\/p>\n<pre style=\"outline: 0px;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);color: rgb(62, 62, 62);font-size: 15px;text-align: start;line-height: inherit;\"><section style=\"outline: 0px;letter-spacing: 0.544px;white-space: normal;color: rgb(0, 0, 0);font-size: 16px;caret-color: rgb(60, 60, 60);font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, Arial, sans-serif;text-align: center;widows: 1;\"><span style=\"outline: 0px;font-size: 20px;color: rgb(255, 0, 0);\"><strong style=\"outline: 0px;\">\u540e\u7aef\u4e13\u5c5e\u6280\u672f\u7fa4<\/strong><\/span><\/section><p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;outline: 0px;white-space: normal;color: rgb(0, 0, 0);font-size: 16px;letter-spacing: normal;caret-color: rgb(60, 60, 60);text-align: center;widows: 1;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;line-height: 26px;visibility: visible;\">\u6784\u5efa\u9ad8\u8d28\u91cf\u7684\u6280\u672f\u4ea4\u6d41\u793e\u7fa4\uff0c\u6b22\u8fce\u4ece\u4e8b\u7f16\u7a0b\u5f00\u53d1\u3001\u6280\u672f\u62db\u8058HR\u8fdb\u7fa4\uff0c\u4e5f\u6b22\u8fce\u5927\u5bb6\u5206\u4eab\u81ea\u5df1\u516c\u53f8\u7684\u5185\u63a8\u4fe1\u606f\uff0c\u76f8\u4e92\u5e2e\u52a9\uff0c\u4e00\u8d77\u8fdb\u6b65\uff01<\/p><blockquote data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 20px;margin-bottom: 20px;padding: 10px 10px 10px 1em;outline: 0px;border-left-width: 2px;border-left-color: rgb(136, 136, 136);color: rgb(119, 119, 119);font-size: 0.9em;white-space: normal;letter-spacing: normal;caret-color: rgb(60, 60, 60);widows: 1;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;border-top: none;border-bottom: none;overflow: auto;background: rgba(0, 0, 0, 0.05);border-right: 2px solid rgb(136, 136, 136);visibility: visible;\"><p style=\"padding-top: 8px;padding-bottom: 8px;outline: 0px;font-size: 16px;text-align: justify;color: black;line-height: 26px;visibility: visible;\">\u6587\u660e\u53d1\u8a00\uff0c\u4ee5<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(0, 150, 136);visibility: visible;\">\u4ea4\u6d41\u6280\u672f<\/code>\u3001<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(0, 150, 136);visibility: visible;\">\u804c\u4f4d\u5185\u63a8<\/code>\u3001<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(0, 150, 136);visibility: visible;\">\u884c\u4e1a\u63a2\u8ba8<\/code>\u4e3a\u4e3b<\/p><\/blockquote><p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;outline: 0px;white-space: normal;color: rgb(0, 0, 0);font-size: 16px;letter-spacing: normal;caret-color: rgb(60, 60, 60);text-align: center;widows: 1;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;line-height: 26px;visibility: visible;\">\u5e7f\u544a\u4eba\u58eb\u52ff\u5165\uff0c\u5207\u52ff\u8f7b\u4fe1\u79c1\u804a\uff0c\u9632\u6b62\u88ab\u9a97<\/p><p style=\"outline: 0px;text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-ratio=\"1.0212201591511936\" data-s=\"300,640\"  data-type=\"png\" data-w=\"377\" style=\"outline: 0px;visibility: visible !important;width: 200px !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165420818.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"1.0212201591511936\" data-s=\"300,640\"  data-type=\"png\" data-w=\"377\" style=\"outline: 0px;visibility: visible !important;width: 200px !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165420818.png\"><\/noscript><\/p><figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;white-space: normal;color: rgb(0, 0, 0);font-size: 16px;letter-spacing: normal;caret-color: rgb(60, 60, 60);widows: 1;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;display: flex;flex-direction: column;justify-content: center;align-items: center;visibility: visible;\"><figcaption style=\"margin-top: 5px;outline: 0px;text-align: center;color: rgb(136, 136, 136);font-size: 14px;visibility: visible;\">\u52a0\u6211\u597d\u53cb\uff0c\u62c9\u4f60\u8fdb\u7fa4<\/figcaption><\/figure><\/pre>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 Java\u9762\u8bd5\u9898\u7cbe\u9009              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>Spring Boot \u662f\u5f53\u4eca\u975e\u5e38\u6d41\u884c\u7684 Java \u5e94\u7528\u6846\u67b6\u4e4b\u4e00\uff0c\u5728\u4f01\u4e1a\u7ea7\u5e94\u7528\u5f00\u53d1\u4e2d\u88ab\u5e7f\u6cdb\u4f7f\u7528\u3002\u5e94\u7528\u90e8\u7f72\u548c\u4f18\u5316\u662f\u4f01\u4e1a\u7ea7\u5e94\u7528\u5f00\u53d1\u7684\u4e00 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":3229,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-3232","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spring-boot"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165417949-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165420818.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165417949-300x127.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165417949.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165420818.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165417949-300x127.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165417949.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165417949.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165420818.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102165420818.png","id":"image1"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Spring Boot","post_date":"2023-11-02","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":305,"next_post_id":3228,"next_post_title":"SpringBoot \u5feb\u901f\u5b9e\u73b0 api \u52a0\u5bc6\uff0c\u4e00\u4e2a\u8f6e\u5b50\u641e\u5b9a\uff01","previous_post_id":3590,"previous_post_title":"RabbitMQ\u7684\u961f\u5217\u4e0e\u63d2\u4ef6","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/3232","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=3232"}],"version-history":[{"count":1,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/3232\/revisions"}],"predecessor-version":[{"id":3622,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/3232\/revisions\/3622"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/3229"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=3232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=3232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=3232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}