{"id":4155,"date":"2024-05-14T17:52:07","date_gmt":"2024-05-14T09:52:07","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/spring-boot%e4%b8%ad%e6%b3%9b%e5%9e%8b%e5%8f%82%e6%95%b0%e7%9a%84%e7%81%b5%e6%b4%bb%e8%bf%90%e7%94%a8%ef%bc%9a%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5%e4%b8%8e%e6%80%a7%e8%83%bd%e4%bc%98%e5%8c%96\/"},"modified":"2024-05-14T17:52:07","modified_gmt":"2024-05-14T09:52:07","slug":"spring-boot%e4%b8%ad%e6%b3%9b%e5%9e%8b%e5%8f%82%e6%95%b0%e7%9a%84%e7%81%b5%e6%b4%bb%e8%bf%90%e7%94%a8%ef%bc%9a%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5%e4%b8%8e%e6%80%a7%e8%83%bd%e4%bc%98%e5%8c%96","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/spring-boot%e4%b8%ad%e6%b3%9b%e5%9e%8b%e5%8f%82%e6%95%b0%e7%9a%84%e7%81%b5%e6%b4%bb%e8%bf%90%e7%94%a8%ef%bc%9a%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5%e4%b8%8e%e6%80%a7%e8%83%bd%e4%bc%98%e5%8c%96\/","title":{"rendered":"Spring Boot\u4e2d\u6cdb\u578b\u53c2\u6570\u7684\u7075\u6d3b\u8fd0\u7528\uff1a\u6700\u4f73\u5b9e\u8df5\u4e0e\u6027\u80fd\u4f18\u5316"},"content":{"rendered":"<div class='wxsyncmain'>\n<blockquote style=\"padding: 15px 15px 15px 1rem;border-left-width: 6px;border-left-color: rgb(83, 109, 254);color: rgb(129, 145, 152);font-size: 0.9em;line-height: inherit;overflow-wrap: normal;width: 868.797px;background: rgb(242, 247, 251);overflow: auto;word-break: normal;border-radius: 9px;box-shadow: rgba(0, 0, 0, 0.14) 0px 2px 4px -1px, rgba(0, 0, 0, 0.12) 0px 4px 5px 0px, rgba(0, 0, 0, 0.4) 0px 1px 10px 0px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: normal;text-align: start;text-wrap: wrap;\">\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;\"><span style=\"color: inherit;font-size: 14px;\">\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e5d\u6781\u5ba2<\/span><\/p>\n<p style=\"margin-bottom: 0px;color: inherit;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;letter-spacing: normal;text-align: start;text-wrap: wrap;outline: 0px;line-height: inherit;\"><span style=\"font-size: 14px;\">\u6b22\u8fce\u661f\u6807\u5173\u6ce8\u4e5d\u6781\u5ba2\uff0c\u4e00\u8d77\u63a2\u8ba8\u6280\u672f\u4e0e\u67b6\u6784\uff01<\/span><\/p>\n<p style=\"margin-bottom: 0px;color: inherit;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;letter-spacing: normal;text-align: start;text-wrap: wrap;outline: 0px;line-height: inherit;\"><span style=\"font-size: 14px;\"><span style=\"font-size: 14px;outline: 0px;\">\u5927\u5bb6\u7684\u70b9\u8d5e\u3001\u6536\u85cf\u548c\u8bc4\u8bba\u5f88\u91cd\u8981\uff0c<\/span><span style=\"font-size: 14px;outline: 0px;color: inherit;\">\u5982\u6587\u7ae0\u5bf9\u60a8\u6709\u5e2e\u52a9\u8fd8\u8bf7\u8f6c\u53d1\u652f\u6301\u4e0b\uff0c\u8c22\u8c22\uff01<\/span><\/span><\/p>\n<\/blockquote>\n<section class=\"mp_profile_iframe_wrp\"><mp-common-profile class=\"js_uneditable custom_select_card mp_profile_iframe\" data-pluginname=\"mpprofile\" data-id=\"MzI2NTE4MDkxNg==\" data-headimg=\"http:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/XWoHb49t3vsRb5IgdpE9qMXuokwu7DMleB5MxhEJlFldia1HibjPxp7qymdy9ImWuZfbibAa9po1jUdmnxrAr9aeQ\/0?wx_fmt=png\" data-nickname=\"\u4e5d\u6781\u5ba2\" data-alias=\"X-9xke\" data-signature=\"\u4e5d\u6781\u5ba2\uff0c\u6280\u672f\u6539\u53d8\u751f\u6d3b\uff0c\u6781\u5ba2\u6539\u53d8\u672a\u6765\uff01\u5173\u6ce8\u5e76\u5206\u4eab\u7f16\u7a0b\u8bed\u8a00\u3001Java\u6280\u672f\u3001\u6280\u672f\u67b6\u6784\u3001\u670d\u52a1\u5316\u3001\u5927\u6570\u636e\u3001\u4e91\u8ba1\u7b97\u3001\u673a\u5668\u5b66\u4e60\u3001\u81ea\u7136\u8bed\u8a00\u3001\u4eba\u5de5\u667a\u80fd\u3002\" data-from=\"0\" data-is_biz_ban=\"0\"><\/mp-common-profile><\/section>\n<figure style=\"font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: normal;text-align: start;text-wrap: wrap;background-color: rgb(255, 255, 255);\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-backh=\"123\" data-backw=\"496\" data-cropselx1=\"0\" data-cropselx2=\"574\" data-cropsely1=\"0\" data-cropsely2=\"358\" data-imgfileid=\"100007420\" data-ratio=\"0.2479108635097493\"  data-w=\"1077\" style=\"margin-right: auto;margin-left: auto;border-width: 2px;border-style: solid;border-color: rgb(238, 238, 238);border-radius: 6px;font-size: inherit;color: inherit;line-height: inherit;display: block;box-shadow: rgba(0, 0, 0, 0.14) 0px 2px 4px -1px, rgba(0, 0, 0, 0.12) 0px 4px 5px 0px, rgba(0, 0, 0, 0.4) 0px 1px 10px 0px;width: 578px;\" title=\"\u56fe\u6ce8:\u5927\u5c11\u516c\u4f17\u53f7\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145624603.gif\" 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-backh=\"123\" data-backw=\"496\" data-cropselx1=\"0\" data-cropselx2=\"574\" data-cropsely1=\"0\" data-cropsely2=\"358\" data-imgfileid=\"100007420\" data-ratio=\"0.2479108635097493\"  data-w=\"1077\" style=\"margin-right: auto;margin-left: auto;border-width: 2px;border-style: solid;border-color: rgb(238, 238, 238);border-radius: 6px;font-size: inherit;color: inherit;line-height: inherit;display: block;box-shadow: rgba(0, 0, 0, 0.14) 0px 2px 4px -1px, rgba(0, 0, 0, 0.12) 0px 4px 5px 0px, rgba(0, 0, 0, 0.4) 0px 1px 10px 0px;width: 578px;\" title=\"\u56fe\u6ce8:\u5927\u5c11\u516c\u4f17\u53f7\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145624603.gif\"  \/><\/noscript><\/figure>\n<section style=\"font-size: 16px;color: rgb(62, 62, 62);line-height: 1.6;word-spacing: 2px;letter-spacing: 2px;font-family: Helvetica, Tahoma, \u5fae\u8f6f\u96c5\u9ed1, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;\">\n<section style=\"font-size: 16px;color: rgb(62, 62, 62);line-height: 1.6;word-spacing: 2px;letter-spacing: 2px;font-family: Helvetica, Tahoma, \u5fae\u8f6f\u96c5\u9ed1, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;\">\n<section style=\"font-size: 16px;color: rgb(62, 62, 62);line-height: 1.6;word-spacing: 2px;letter-spacing: 2px;font-family: Helvetica, Tahoma, \u5fae\u8f6f\u96c5\u9ed1, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;\">\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\u6cdb\u578b\u662fJava\u4e2d\u4e00\u79cd\u5f3a\u5927\u7684\u7279\u6027\uff0c\u5b83\u63d0\u4f9b\u4e86\u7f16\u5199\u901a\u7528\u4ee3\u7801\u7684\u80fd\u529b\uff0c\u4f7f\u5f97\u4ee3\u7801\u66f4\u52a0\u7075\u6d3b\u548c\u53ef\u590d\u7528\u3002\u5728Spring Boot\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u6cdb\u578b\u53c2\u6570\u7684\u7075\u6d3b\u8fd0\u7528\u53ef\u4ee5\u5e26\u6765\u8bf8\u591a\u597d\u5904\uff0c\u5305\u62ec\u589e\u5f3a\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3001\u63d0\u9ad8\u7cfb\u7edf\u7684\u5065\u58ee\u6027\u4ee5\u53ca\u4f18\u5316\u7cfb\u7edf\u7684\u6027\u80fd\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8\u5728Spring Boot\u4e2d\u5982\u4f55\u7075\u6d3b\u8fd0\u7528\u6cdb\u578b\u53c2\u6570\uff0c\u5e76\u63d0\u4f9b\u6700\u4f73\u5b9e\u8df5\u4e0e\u6027\u80fd\u4f18\u5316\u7684\u5efa\u8bae\u3002<\/p>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100001510\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\"  data-type=\"jpeg\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145706555.jpeg\" 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-imgfileid=\"100001510\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\"  data-type=\"jpeg\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145706555.jpeg\"  \/><\/noscript><\/p>\n<h3 style=\"line-height: inherit;font-weight: bolder;color: rgb(61, 90, 254);text-align: center;font-size: 20px;margin-bottom: 18px;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u6cdb\u578b\u53c2\u6570\u7684\u57fa\u672c\u6982\u5ff5<\/span><\/h3>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\u9996\u5148\uff0c\u8ba9\u6211\u4eec\u56de\u987e\u4e00\u4e0b\u6cdb\u578b\u53c2\u6570\u7684\u57fa\u672c\u6982\u5ff5\u3002\u6cdb\u578b\u53c2\u6570\u5141\u8bb8\u6211\u4eec\u5728\u5b9a\u4e49\u7c7b\u3001\u63a5\u53e3\u6216\u65b9\u6cd5\u65f6\u4f7f\u7528\u7c7b\u578b\u53c2\u6570\uff0c\u8fd9\u6837\u53ef\u4ee5\u4f7f\u5f97\u7c7b\u3001\u63a5\u53e3\u6216\u65b9\u6cd5\u53ef\u4ee5\u64cd\u4f5c\u4efb\u610f\u7c7b\u578b\u7684\u6570\u636e\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u5b9a\u4e49\u4e00\u4e2a\u6cdb\u578b\u7c7b<code style=\"font-size: inherit;line-height: inherit;padding: 3px 6px;border-radius: 4px;margin-right: 9px;margin-left: 9px;color: rgb(124, 77, 255);background: rgb(248, 248, 248);box-shadow: rgb(63, 63, 63) 3px 3px 9px;font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;\">Box&lt;T&gt;<\/code>\u6765\u5b58\u50a8\u4efb\u610f\u7c7b\u578b\u7684\u5bf9\u8c61\u3002<\/p>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;overflow: hidden;\"><code style=\"line-height: 18px;word-spacing: 0px;letter-spacing: 0px;border-radius: 9px;box-shadow: rgb(63, 63, 63) 3px 3px 9px;font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;background: rgb(40, 43, 46);color: rgb(224, 226, 228);margin-top: 16px;margin-bottom: 16px;padding: 18px;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">class<\/span><span style=\"font-size: inherit;line-height: inherit;font-weight: bold;color: white;overflow-wrap: inherit !important;word-break: inherit !important;\">Box<\/span>&lt;<span style=\"font-size: inherit;line-height: inherit;font-weight: bold;color: white;overflow-wrap: inherit !important;word-break: inherit !important;\">T<\/span>&gt;<\/span>{<span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">private<\/span>Tdata;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span>T<span style=\"font-size: inherit;color: inherit;line-height: inherit;font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">getData<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">()<\/span><\/span>{<span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">return<\/span>data;}<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">void<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">setData<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">(Tdata)<\/span><\/span>{<span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.data=data;}}<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code style=\"font-size: inherit;line-height: inherit;padding: 3px 6px;border-radius: 4px;margin-right: 9px;margin-left: 9px;color: rgb(124, 77, 255);background: rgb(248, 248, 248);box-shadow: rgb(63, 63, 63) 3px 3px 9px;font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;\">Box&lt;T&gt;<\/code>\u662f\u4e00\u4e2a\u6cdb\u578b\u7c7b\uff0c<code style=\"font-size: inherit;line-height: inherit;padding: 3px 6px;border-radius: 4px;margin-right: 9px;margin-left: 9px;color: rgb(124, 77, 255);background: rgb(248, 248, 248);box-shadow: rgb(63, 63, 63) 3px 3px 9px;font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;\">T<\/code>\u662f\u7c7b\u578b\u53c2\u6570\uff0c\u8868\u793a\u4efb\u610f\u7c7b\u578b\u3002\u901a\u8fc7\u4f7f\u7528\u6cdb\u578b\u53c2\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u5b9e\u73b0\u5bf9\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u8fdb\u884c\u64cd\u4f5c\uff0c\u4ece\u800c\u63d0\u9ad8\u4ee3\u7801\u7684\u7075\u6d3b\u6027\u548c\u53ef\u590d\u7528\u6027\u3002<\/p>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100001550\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\"  data-type=\"jpeg\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145708856.jpeg\" 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-imgfileid=\"100001550\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\"  data-type=\"jpeg\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145708856.jpeg\"  \/><\/noscript><\/p>\n<h3 style=\"line-height: inherit;font-weight: bolder;color: rgb(61, 90, 254);text-align: center;font-size: 20px;margin-bottom: 18px;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u6cdb\u578b\u53c2\u6570\u7684\u7075\u6d3b\u8fd0\u7528<\/span><\/h3>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\u5728Spring Boot\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u6cdb\u578b\u53c2\u6570\u7684\u7075\u6d3b\u8fd0\u7528\u53ef\u4ee5\u5e26\u6765\u8bf8\u591a\u597d\u5904\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u4ecb\u7ecd\u51e0\u79cd\u5e38\u89c1\u7684\u5e94\u7528\u573a\u666f\u53ca\u5176\u793a\u4f8b\u4ee3\u7801\u3002<\/p>\n<h4 style=\"line-height: inherit;font-weight: bolder;font-size: 18px;text-align: left;border-left: 5px solid rgb(61, 90, 254);padding-left: 9px;margin-top: 18px;margin-bottom: 18px;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">2.1. \u901a\u7528\u6570\u636e\u8bbf\u95ee\u5c42<\/span><\/h4>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\u5728\u6570\u636e\u8bbf\u95ee\u5c42\u4e2d\uff0c\u6211\u4eec\u7ecf\u5e38\u4f1a\u9047\u5230\u5bf9\u4e0d\u540c\u5b9e\u4f53\u8fdb\u884c\u589e\u5220\u6539\u67e5\u64cd\u4f5c\u7684\u9700\u6c42\u3002\u901a\u8fc7\u4f7f\u7528\u6cdb\u578b\u53c2\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u7f16\u5199\u901a\u7528\u7684\u6570\u636e\u8bbf\u95ee\u5c42\u4ee3\u7801\uff0c\u4ece\u800c\u907f\u514d\u91cd\u590d\u7f16\u5199\u76f8\u4f3c\u7684\u4ee3\u7801\u3002<\/p>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;overflow: hidden;\"><code style=\"line-height: 18px;word-spacing: 0px;letter-spacing: 0px;border-radius: 9px;box-shadow: rgb(63, 63, 63) 3px 3px 9px;font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;background: rgb(40, 43, 46);color: rgb(224, 226, 228);margin-top: 16px;margin-bottom: 16px;padding: 18px;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(85, 113, 130);overflow-wrap: inherit !important;word-break: inherit !important;\">@Repository<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">class<\/span><span style=\"font-size: inherit;line-height: inherit;font-weight: bold;color: white;overflow-wrap: inherit !important;word-break: inherit !important;\">GenericRepository<\/span>&lt;<span style=\"font-size: inherit;line-height: inherit;font-weight: bold;color: white;overflow-wrap: inherit !important;word-break: inherit !important;\">T<\/span>&gt;<\/span>{<span style=\"font-size: inherit;line-height: inherit;color: rgb(85, 113, 130);overflow-wrap: inherit !important;word-break: inherit !important;\">@Autowired<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">private<\/span>EntityManagerentityManager;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span>T<span style=\"font-size: inherit;color: inherit;line-height: inherit;font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">findById<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">(Class&lt;T&gt;clazz,Longid)<\/span><\/span>{<span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">return<\/span>entityManager.find(clazz,id);}<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">void<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">save<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">(Tentity)<\/span><\/span>{entityManager.persist(entity);}<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">void<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">update<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">(Tentity)<\/span><\/span>{entityManager.merge(entity);}<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">void<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">delete<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">(Tentity)<\/span><\/span>{entityManager.remove(entity);}}<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code style=\"font-size: inherit;line-height: inherit;padding: 3px 6px;border-radius: 4px;margin-right: 9px;margin-left: 9px;color: rgb(124, 77, 255);background: rgb(248, 248, 248);box-shadow: rgb(63, 63, 63) 3px 3px 9px;font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;\">GenericRepository&lt;T&gt;<\/code>\u662f\u4e00\u4e2a\u901a\u7528\u7684\u6570\u636e\u8bbf\u95ee\u5c42\u7c7b\uff0c\u53ef\u4ee5\u5bf9\u4efb\u610f\u7c7b\u578b\u7684\u5b9e\u4f53\u8fdb\u884c\u589e\u5220\u6539\u67e5\u64cd\u4f5c\u3002\u901a\u8fc7\u4f7f\u7528\u6cdb\u578b\u53c2\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u5b9e\u73b0\u5bf9\u4e0d\u540c\u5b9e\u4f53\u7684\u901a\u7528\u64cd\u4f5c\uff0c\u4ece\u800c\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u590d\u7528\u6027\u3002<\/p>\n<h4 style=\"line-height: inherit;font-weight: bolder;font-size: 18px;text-align: left;border-left: 5px solid rgb(61, 90, 254);padding-left: 9px;margin-top: 18px;margin-bottom: 18px;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">2.2. \u901a\u7528\u4e1a\u52a1\u903b\u8f91\u5c42<\/span><\/h4>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\u5728\u4e1a\u52a1\u903b\u8f91\u5c42\u4e2d\uff0c\u6211\u4eec\u7ecf\u5e38\u4f1a\u9047\u5230\u5bf9\u4e0d\u540c\u7c7b\u578b\u7684\u4e1a\u52a1\u8fdb\u884c\u5904\u7406\u7684\u9700\u6c42\u3002\u901a\u8fc7\u4f7f\u7528\u6cdb\u578b\u53c2\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u7f16\u5199\u901a\u7528\u7684\u4e1a\u52a1\u903b\u8f91\u5c42\u4ee3\u7801\uff0c\u4ece\u800c\u5b9e\u73b0\u5bf9\u4e0d\u540c\u7c7b\u578b\u7684\u4e1a\u52a1\u8fdb\u884c\u7edf\u4e00\u7ba1\u7406\u3002<\/p>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;overflow: hidden;\"><code style=\"line-height: 18px;word-spacing: 0px;letter-spacing: 0px;border-radius: 9px;box-shadow: rgb(63, 63, 63) 3px 3px 9px;font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;background: rgb(40, 43, 46);color: rgb(224, 226, 228);margin-top: 16px;margin-bottom: 16px;padding: 18px;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(85, 113, 130);overflow-wrap: inherit !important;word-break: inherit !important;\">@Service<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">class<\/span><span style=\"font-size: inherit;line-height: inherit;font-weight: bold;color: white;overflow-wrap: inherit !important;word-break: inherit !important;\">GenericService<\/span>&lt;<span style=\"font-size: inherit;line-height: inherit;font-weight: bold;color: white;overflow-wrap: inherit !important;word-break: inherit !important;\">T<\/span>&gt;<\/span>{<span style=\"font-size: inherit;line-height: inherit;color: rgb(85, 113, 130);overflow-wrap: inherit !important;word-break: inherit !important;\">@Autowired<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">private<\/span>GenericRepository&lt;T&gt;repository;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span>T<span style=\"font-size: inherit;color: inherit;line-height: inherit;font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">findById<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">(Longid)<\/span><\/span>{<span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">return<\/span>repository.findById(id);}<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">void<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">save<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">(Tentity)<\/span><\/span>{repository.save(entity);}<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">void<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">update<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">(Tentity)<\/span><\/span>{repository.update(entity);}<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">void<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">delete<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">(Tentity)<\/span><\/span>{repository.delete(entity);}}<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code style=\"font-size: inherit;line-height: inherit;padding: 3px 6px;border-radius: 4px;margin-right: 9px;margin-left: 9px;color: rgb(124, 77, 255);background: rgb(248, 248, 248);box-shadow: rgb(63, 63, 63) 3px 3px 9px;font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;\">GenericService&lt;T&gt;<\/code>\u662f\u4e00\u4e2a\u901a\u7528\u7684\u4e1a\u52a1\u903b\u8f91\u5c42\u7c7b\uff0c\u53ef\u4ee5\u5bf9\u4efb\u610f\u7c7b\u578b\u7684\u4e1a\u52a1\u8fdb\u884c\u5904\u7406\u3002\u901a\u8fc7\u4f7f\u7528\u6cdb\u578b\u53c2\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u5b9e\u73b0\u5bf9\u4e0d\u540c\u7c7b\u578b\u7684\u4e1a\u52a1\u8fdb\u884c\u7edf\u4e00\u7ba1\u7406\uff0c\u4ece\u800c\u63d0\u9ad8\u4ee3\u7801\u7684\u7075\u6d3b\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n<h4 style=\"line-height: inherit;font-weight: bolder;font-size: 18px;text-align: left;border-left: 5px solid rgb(61, 90, 254);padding-left: 9px;margin-top: 18px;margin-bottom: 18px;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">2.3. \u901a\u7528\u63a7\u5236\u5668\u5c42<\/span><\/h4>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\u5728\u63a7\u5236\u5668\u5c42\u4e2d\uff0c\u6211\u4eec\u7ecf\u5e38\u4f1a\u9047\u5230\u5bf9\u4e0d\u540c\u7c7b\u578b\u7684\u8bf7\u6c42\u8fdb\u884c\u5904\u7406\u7684\u9700\u6c42\u3002\u901a\u8fc7\u4f7f\u7528\u6cdb\u578b\u53c2\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u7f16\u5199\u901a\u7528\u7684\u63a7\u5236\u5668\u5c42\u4ee3\u7801\uff0c\u4ece\u800c\u5b9e\u73b0\u5bf9\u4e0d\u540c\u7c7b\u578b\u7684\u8bf7\u6c42\u8fdb\u884c\u7edf\u4e00\u5904\u7406\u3002<\/p>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;overflow: hidden;\"><code style=\"line-height: 18px;word-spacing: 0px;letter-spacing: 0px;border-radius: 9px;box-shadow: rgb(63, 63, 63) 3px 3px 9px;font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;background: rgb(40, 43, 46);color: rgb(224, 226, 228);margin-top: 16px;margin-bottom: 16px;padding: 18px;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(85, 113, 130);overflow-wrap: inherit !important;word-break: inherit !important;\">@RestController<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(85, 113, 130);overflow-wrap: inherit !important;word-break: inherit !important;\">@RequestMapping<\/span>(<span style=\"font-size: inherit;line-height: inherit;color: rgb(236, 118, 0);overflow-wrap: inherit !important;word-break: inherit !important;\">\"\/api\"<\/span>)<span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">class<\/span><span style=\"font-size: inherit;line-height: inherit;font-weight: bold;color: white;overflow-wrap: inherit !important;word-break: inherit !important;\">GenericController<\/span>&lt;<span style=\"font-size: inherit;line-height: inherit;font-weight: bold;color: white;overflow-wrap: inherit !important;word-break: inherit !important;\">T<\/span>&gt;<\/span>{<span style=\"font-size: inherit;line-height: inherit;color: rgb(85, 113, 130);overflow-wrap: inherit !important;word-break: inherit !important;\">@Autowired<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">private<\/span>GenericService&lt;T&gt;service;<span style=\"font-size: inherit;line-height: inherit;color: rgb(85, 113, 130);overflow-wrap: inherit !important;word-break: inherit !important;\">@GetMapping<\/span>(<span style=\"font-size: inherit;line-height: inherit;color: rgb(236, 118, 0);overflow-wrap: inherit !important;word-break: inherit !important;\">\"\/{id}\"<\/span>)<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span>ResponseEntity&lt;T&gt;<span style=\"font-size: inherit;color: inherit;line-height: inherit;font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">findById<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">(@PathVariableLongid)<\/span><\/span>{Tentity=service.findById(id);<span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>(entity!=<span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>){<span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">return<\/span>ResponseEntity.ok(entity);}<span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">else<\/span>{<span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">return<\/span>ResponseEntity.notFound().build();}}<span style=\"font-size: inherit;line-height: inherit;color: rgb(85, 113, 130);overflow-wrap: inherit !important;word-break: inherit !important;\">@PostMapping<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span>ResponseEntity&lt;Void&gt;<span style=\"font-size: inherit;color: inherit;line-height: inherit;font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">save<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">(@RequestBodyTentity)<\/span><\/span>{service.save(entity);<span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">return<\/span>ResponseEntity.ok().build();}<span style=\"font-size: inherit;line-height: inherit;color: rgb(85, 113, 130);overflow-wrap: inherit !important;word-break: inherit !important;\">@PutMapping<\/span>(<span style=\"font-size: inherit;line-height: inherit;color: rgb(236, 118, 0);overflow-wrap: inherit !important;word-break: inherit !important;\">\"\/{id}\"<\/span>)<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span>ResponseEntity&lt;Void&gt;<span style=\"font-size: inherit;color: inherit;line-height: inherit;font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">update<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">(@PathVariableLongid,@RequestBodyTentity)<\/span><\/span>{service.update(entity);<span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">return<\/span>ResponseEntity.ok().build();}<span style=\"font-size: inherit;line-height: inherit;color: rgb(85, 113, 130);overflow-wrap: inherit !important;word-break: inherit !important;\">@DeleteMapping<\/span>(<span style=\"font-size: inherit;line-height: inherit;color: rgb(236, 118, 0);overflow-wrap: inherit !important;word-break: inherit !important;\">\"\/{id}\"<\/span>)<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span>ResponseEntity&lt;Void&gt;<span style=\"font-size: inherit;color: inherit;line-height: inherit;font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">delete<\/span><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">(@PathVariableLongid)<\/span><\/span>{Tentity=service.findById(id);<span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>(entity!=<span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>){service.delete(entity);<span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">return<\/span>ResponseEntity.ok().build();}<span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">else<\/span>{<span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">return<\/span>ResponseEntity.notFound().build();}}}<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code style=\"font-size: inherit;line-height: inherit;padding: 3px 6px;border-radius: 4px;margin-right: 9px;margin-left: 9px;color: rgb(124, 77, 255);background: rgb(248, 248, 248);box-shadow: rgb(63, 63, 63) 3px 3px 9px;font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;\">GenericController&lt;T&gt;<\/code>\u662f\u4e00\u4e2a\u901a\u7528\u7684\u63a7\u5236\u5668\u5c42\u7c7b\uff0c\u53ef\u4ee5\u5bf9\u4efb\u610f\u7c7b\u578b\u7684\u8bf7\u6c42\u8fdb\u884c\u5904\u7406\u3002\u901a\u8fc7\u4f7f\u7528\u6cdb\u578b\u53c2\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u5b9e\u73b0\u5bf9\u4e0d\u540c\u7c7b\u578b\u7684\u8bf7\u6c42\u8fdb\u884c\u7edf\u4e00\u5904\u7406\uff0c\u4ece\u800c\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u590d\u7528\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100001554\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\"  data-type=\"jpeg\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145711536.jpeg\" 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-imgfileid=\"100001554\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\"  data-type=\"jpeg\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145711536.jpeg\"  \/><\/noscript><\/p>\n<h3 style=\"line-height: inherit;font-weight: bolder;color: rgb(61, 90, 254);text-align: center;font-size: 20px;margin-bottom: 18px;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u6027\u80fd\u4f18\u5316<\/span><\/h3>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\u867d\u7136\u6cdb\u578b\u53c2\u6570\u63d0\u4f9b\u4e86\u7075\u6d3b\u6027\u548c\u53ef\u590d\u7528\u6027\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u53ef\u80fd\u4f1a\u5f71\u54cd\u7cfb\u7edf\u7684\u6027\u80fd\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u4ecb\u7ecd\u51e0\u79cd\u4f18\u5316\u6027\u80fd\u7684\u65b9\u6cd5\u3002<\/p>\n<h4 style=\"line-height: inherit;font-weight: bolder;font-size: 18px;text-align: left;border-left: 5px solid rgb(61, 90, 254);padding-left: 9px;margin-top: 18px;margin-bottom: 18px;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">3.1. \u660e\u786e\u6307\u5b9a\u6cdb\u578b\u53c2\u6570\u7684\u7c7b\u578b<\/span><\/h4>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\u5728\u5b9a\u4e49\u6cdb\u578b\u7c7b\u3001\u63a5\u53e3\u6216\u65b9\u6cd5\u65f6\uff0c\u53ef\u4ee5\u660e\u786e\u6307\u5b9a\u6cdb\u578b\u53c2\u6570\u7684\u7c7b\u578b\uff0c\u4ece\u800c\u907f\u514d\u4f7f\u7528\u6cdb\u578b\u64e6\u9664\u673a\u5236\uff0c\u63d0\u9ad8\u7cfb\u7edf\u7684\u6027\u80fd\u3002<\/p>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;overflow: hidden;\"><code style=\"line-height: 18px;word-spacing: 0px;letter-spacing: 0px;border-radius: 9px;box-shadow: rgb(63, 63, 63) 3px 3px 9px;font-family: Helvetica, Tahoma, \u6977\u4f53, \u534e\u6587\u6977\u4f53, \u5b8b\u4f53;background: rgb(40, 43, 46);color: rgb(224, 226, 228);margin-top: 16px;margin-bottom: 16px;padding: 18px;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\">List&lt;String&gt;list=<span style=\"font-size: inherit;line-height: inherit;color: rgb(147, 199, 99);font-weight: bold;overflow-wrap: inherit !important;word-break: inherit !important;\">new<\/span>ArrayList&lt;&gt;();<\/code><\/pre>\n<h4 style=\"line-height: inherit;font-weight: bolder;font-size: 18px;text-align: left;border-left: 5px solid rgb(61, 90, 254);padding-left: 9px;margin-top: 18px;margin-bottom: 18px;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">3.2. \u907f\u514d\u8fc7\u5ea6\u4f7f\u7528\u6cdb\u578b\u53c2\u6570<\/span><\/h4>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\u5728\u7f16\u5199\u4ee3\u7801\u65f6\uff0c\u5e94\u907f\u514d\u8fc7\u5ea6\u4f7f\u7528\u6cdb\u578b\u53c2\u6570\uff0c\u5c3d\u91cf\u5c06\u6cdb\u578b\u53c2\u6570\u5e94\u7528\u4e8e\u901a\u7528\u7684\u573a\u666f\uff0c\u907f\u514d\u9891\u7e41\u5730\u521b\u5efa\u6cdb\u578b\u7c7b\u578b\u3002<\/p>\n<h4 style=\"line-height: inherit;font-weight: bolder;font-size: 18px;text-align: left;border-left: 5px solid rgb(61, 90, 254);padding-left: 9px;margin-top: 18px;margin-bottom: 18px;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">3.3. \u5408\u7406\u8bbe\u8ba1\u6cdb\u578b\u53c2\u6570\u7684\u7ee7\u627f\u5173\u7cfb<\/span><\/h4>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\u5728\u8bbe\u8ba1\u6cdb\u578b\u7c7b\u3001\u63a5\u53e3\u6216\u65b9\u6cd5\u65f6\uff0c\u5e94\u5408\u7406\u8bbe\u8ba1\u6cdb\u578b\u53c2\u6570\u7684\u7ee7\u627f\u5173\u7cfb\uff0c\u907f\u514d\u6cdb\u578b\u53c2\u6570\u4e4b\u95f4\u5b58\u5728\u8fc7\u591a\u7684\u7ee7\u627f\u5173\u7cfb\uff0c\u4ece\u800c\u51cf\u5c11\u7cfb\u7edf\u7684\u590d\u6742\u5ea6\u3002<\/p>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100001553\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\"  data-type=\"jpeg\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145714564.jpeg\" 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-imgfileid=\"100001553\" data-ratio=\"0.1111111111111111\" data-s=\"300,640\"  data-type=\"jpeg\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145714564.jpeg\"  \/><\/noscript><\/p>\n<h3 style=\"line-height: inherit;font-weight: bolder;color: rgb(61, 90, 254);text-align: center;font-size: 20px;margin-bottom: 18px;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u603b \u7ed3<\/span><\/h3>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;text-indent: 2em;\">\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u4e86\u89e3\u4e86\u5728Spring Boot\u4e2d\u5982\u4f55\u7075\u6d3b\u8fd0\u7528\u6cdb\u578b\u53c2\u6570\uff0c\u5e76\u63d0\u4f9b\u4e86\u6700\u4f73\u5b9e\u8df5\u4e0e\u6027\u80fd\u4f18\u5316\u7684\u5efa\u8bae\u3002\u6cdb\u578b\u53c2\u6570\u7684\u7075\u6d3b\u8fd0\u7528\u53ef\u4ee5\u5e26\u6765\u8bf8\u591a\u597d\u5904\uff0c\u5305\u62ec\u589e\u5f3a\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3001\u63d0\u9ad8\u7cfb\u7edf\u7684\u5065\u58ee\u6027\u4ee5\u53ca\u4f18\u5316\u7cfb\u7edf\u7684\u6027\u80fd\u3002\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\uff0c\u6211\u4eec\u5e94\u6839\u636e\u5177\u4f53\u9700\u6c42\u548c\u7cfb\u7edf\u6027\u80fd\u8981\u6c42\uff0c\u5408\u7406\u8fd0\u7528\u6cdb\u578b\u53c2\u6570\uff0c\u4ece\u800c\u5b9e\u73b0\u4ee3\u7801\u7684\u9ad8\u6548\u5f00\u53d1\u548c\u4f18\u5316\u3002<\/p>\n<\/section>\n<\/section>\n<\/section>\n<hr style=\"font-size: inherit;color: inherit;line-height: inherit;height: 1px;margin-top: 1.5rem;margin-bottom: 1.5rem;border-right: none;border-bottom: none;border-left: none;border-top-style: dashed;border-top-color: rgb(165, 165, 165);\"  \/>\n<p style=\"color: inherit;line-height: inherit;text-indent: 0em;margin-bottom: 0px;\"><strong><span style=\"font-size: 16px;\">\u611f\u8c22\u661f\u6807\u5173\u6ce8<span style=\"font-size: 16px;color: rgb(0, 82, 255);\">\u4e5d\u6781\u5ba2<\/span>\uff0c\u6b22\u8fce\u7559\u8a00\u8ba8\u8bba\uff01<\/span><\/strong><\/p>\n<section style=\"text-align: center;margin-bottom: 0px;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100007419\" data-ratio=\"0.1859375\"  data-type=\"gif\" data-w=\"640\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145716218.gif\" 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-imgfileid=\"100007419\" data-ratio=\"0.1859375\"  data-type=\"gif\" data-w=\"640\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145716218.gif\"  \/><\/noscript><\/section>\n<ul style=\"list-style-type: disc;\" class=\"list-paddingleft-1\">\n<li style=\"outline: 0px;font-size: 14px;\">\n<p style=\"outline: 0px;text-align: left;\"><span style=\"outline: 0px;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzI2NTE4MDkxNg==&amp;mid=2247489792&amp;idx=1&amp;sn=bf93b0eea19ac06ba6b054cc680c33f0&amp;chksm=eaa01a9bddd7938d08bbec13239800fbac51fb19511aa16ecd934e29c60805b95a963845fe78&amp;scene=21#wechat_redirect\" textvalue=\"\u529f\u80fd\u4e0e\u6570\u636e\u6743\u9650\uff0cSpring AOP\u5168\u641e\u5b9a\uff01\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" hasload=\"1\" style=\"outline: 0px;color: var(--weui-LINK);cursor: pointer;\" rel=\"noopener\" rel=\"nofollow\" >\u529f\u80fd\u4e0e\u6570\u636e\u6743\u9650\uff0cSpring AOP\u5168\u641e\u5b9a\uff01<\/a><\/span><\/p>\n<\/li>\n<li style=\"outline: 0px;font-size: 14px;\">\n<p style=\"outline: 0px;text-align: left;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzI2NTE4MDkxNg==&amp;mid=2247489806&amp;idx=1&amp;sn=501046cae7dc20475adcfaab424b70fa&amp;chksm=eaa01a95ddd79383caccfb92e4b5dcd6245eb7906ec85153c7f030e2eead3cac03ba0456c7d8&amp;scene=21#wechat_redirect\" textvalue=\"\u4f7f\u7528Spring Boot\u6784\u5efaGraphQL\u670d\u52a1\u5b9e\u73b0\u591a\u7aef\u6570\u636e\u7edf\u4e00\u8bbf\u95ee\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" hasload=\"1\" style=\"outline: 0px;color: var(--weui-LINK);cursor: pointer;\" rel=\"noopener\" rel=\"nofollow\" >\u4f7f\u7528Spring Boot\u6784\u5efaGraphQL\u670d\u52a1\u5b9e\u73b0\u591a\u7aef\u6570\u636e\u7edf\u4e00\u8bbf\u95ee<\/a><\/p>\n<\/li>\n<li style=\"outline: 0px;font-size: 14px;\">\n<p style=\"outline: 0px;text-align: left;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzI2NTE4MDkxNg==&amp;mid=2247489103&amp;idx=3&amp;sn=ac3a892469b20f0d404dbc177631c250&amp;chksm=eaa015d4ddd79cc2446bb6120573a0a4c2c75b0dbddeab98940147afdf1913b127cb8ae83019&amp;scene=21#wechat_redirect\" textvalue=\"\u9ad8\u6548\u5546\u54c1\u4fe1\u606f\u7f13\u5b58\uff1aSpring Cache\u4e0eRedis\u7684\u9ec4\u91d1\u7ec4\u5408\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" hasload=\"1\" style=\"outline: 0px;color: var(--weui-LINK);cursor: pointer;\" rel=\"noopener\" rel=\"nofollow\" >\u9ad8\u6548\u5546\u54c1\u4fe1\u606f\u7f13\u5b58\uff1aSpring Cache\u4e0eRedis\u7684\u9ec4\u91d1\u7ec4\u5408<\/a><\/p>\n<\/li>\n<li style=\"outline: 0px;font-size: 14px;\">\n<p style=\"outline: 0px;text-align: left;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzI2NTE4MDkxNg==&amp;mid=2247489799&amp;idx=1&amp;sn=cd1a2efd9680ee2aeb1966737040afab&amp;chksm=eaa01a9cddd7938ab93c5279e83cd892cd47e0bb3ee21fd3357d4eeff8c993cc83b76116edf5&amp;scene=21#wechat_redirect\" textvalue=\"\u5728Spring Boot\u4e2d\u4f7f\u7528GraphQL\u5e94\u5bf9\u6570\u636e\u9700\u6c42\u7684\u53d8\u5316\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" hasload=\"1\" style=\"outline: 0px;color: var(--weui-LINK);cursor: pointer;\" rel=\"noopener\" rel=\"nofollow\" >\u5728Spring Boot\u4e2d\u4f7f\u7528GraphQL\u5e94\u5bf9\u6570\u636e\u9700\u6c42\u7684\u53d8\u5316<\/a><\/p>\n<\/li>\n<li style=\"outline: 0px;font-size: 14px;\">\n<p style=\"outline: 0px;text-align: left;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzI2NTE4MDkxNg==&amp;mid=2247489819&amp;idx=1&amp;sn=867738018bc78d78db08c9170fc7c81d&amp;chksm=eaa01a80ddd793965504cbba3881e290367662f171053444830c5408826d28a7384827b599a3&amp;scene=21#wechat_redirect\" textvalue=\"\u7528Spring AOP\u5b9e\u73b0\u6570\u636e\u6743\u9650\u7cbe\u7ec6\u63a7\u5236\uff1a\u8ba9\u4fe1\u606f\u53ea\u6d41\u5411\u8be5\u770b\u7684\u4eba\uff01\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" hasload=\"1\" style=\"outline: 0px;color: var(--weui-LINK);cursor: pointer;\" rel=\"noopener\" rel=\"nofollow\" >\u7528Spring AOP\u5b9e\u73b0\u6570\u636e\u6743\u9650\u7cbe\u7ec6\u63a7\u5236\uff1a\u8ba9\u4fe1\u606f\u53ea\u6d41\u5411\u8be5\u770b\u7684\u4eba\uff01<\/a><\/p>\n<\/li>\n<\/ul>\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:                 \u4e5d\u6781\u5ba2              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e5d\u6781\u5ba2 \u6b22\u8fce\u661f\u6807\u5173\u6ce8\u4e5d\u6781\u5ba2\uff0c\u4e00\u8d77\u63a2\u8ba8\u6280\u672f\u4e0e\u67b6\u6784\uff01 \u5927\u5bb6\u7684\u70b9\u8d5e\u3001\u6536\u85cf\u548c\u8bc4\u8bba\u5f88\u91cd\u8981\uff0c\u5982\u6587\u7ae0\u5bf9\u60a8\u6709\u5e2e\u52a9\u8fd8\u8bf7\u8f6c\u53d1\u652f\u6301\u4e0b\uff0c\u8c22\u8c22\uff01 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":4146,"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-4155","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\/2024\/05\/20240524145619428-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145624603.gif","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145619428-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145619428.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145624603.gif","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145619428-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145619428.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145619428.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145624603.gif","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145624603.gif","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145706555.jpeg","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145706555.jpeg","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145708856.jpeg","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145708856.jpeg","id":"image5"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145711536.jpeg","id":"image6"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145711536.jpeg","id":"image7"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145714564.jpeg","id":"image8"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145714564.jpeg","id":"image9"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145716218.gif","id":"image10"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524145716218.gif","id":"image11"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Spring Boot","post_date":"2024-05-14","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":513,"next_post_id":3948,"next_post_title":"Spring Boot+Netty+Websocket\u5b9e\u73b0\u540e\u53f0\u5411\u524d\u7aef\u63a8\u9001\u4fe1\u606f","previous_post_id":4442,"previous_post_title":"Spring Boot\u652f\u6301\u53d1\u9001\u90ae\u4ef6","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4155","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=4155"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4155\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/4146"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=4155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=4155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=4155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}