{"id":45041,"date":"2025-06-22T02:23:02","date_gmt":"2025-06-21T18:23:02","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/45041.html"},"modified":"2025-06-22T02:23:02","modified_gmt":"2025-06-21T18:23:02","slug":"lombok%e5%b8%b8%e7%94%a8%e6%b3%a8%e8%a7%a3%e6%80%bb%e7%bb%93","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/45041.html","title":{"rendered":"Lombok\u5e38\u7528\u6ce8\u89e3\u603b\u7ed3"},"content":{"rendered":"<h4>&#064;RequiredArgsConstructor\u6ce8\u89e3<\/h4>\n<h5>1.\u793a\u4f8b<\/h5>\n<p>\u5728\u7c7b\u4e0a\u6dfb\u52a0&#064;RequiredArgsConstructor\u6ce8\u89e3&#xff0c;Lombok\u4f1a\u81ea\u52a8\u751f\u6210\u4e00\u4e2a\u6784\u9020\u51fd\u6570&#xff0c;\u8be5\u6784\u9020\u51fd\u6570\u5305\u542b\u7c7b\u4e2d\u6240\u6709final\u5b57\u6bb5\u548c\u88ab&#064;NonNull\u6ce8\u89e3\u6807\u6ce8\u7684\u5b57\u6bb5\u3002\u793a\u4f8b\u5982\u4e0b&#xff1a;<\/p>\n<p><span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">lombok<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">NonNull<\/span><\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">lombok<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">RequiredArgsConstructor<\/span><\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token annotation punctuation\">&#064;RequiredArgsConstructor<\/span><br \/>\n<span class=\"token keyword\">public<\/span> <span class=\"token keyword\">class<\/span> <span class=\"token class-name\">User<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">private<\/span> <span class=\"token keyword\">final<\/span> <span class=\"token class-name\">Long<\/span> id<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token annotation punctuation\">&#064;NonNull<\/span><br \/>\n    <span class=\"token keyword\">private<\/span> <span class=\"token class-name\">String<\/span> name<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">private<\/span> <span class=\"token class-name\">Integer<\/span> age<span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u666e\u901a\u5b57\u6bb5\u4e0d\u4f1a\u51fa\u73b0\u5728\u6784\u9020\u51fd\u6570\u4e2d<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u4e0a\u9762\u7684\u4ee3\u7801\u7ecf\u8fc7\u7f16\u8bd1\u540e&#xff0c;\u4f1a\u751f\u6210\u5982\u4e0b\u6784\u9020\u51fd\u6570&#xff1a;<\/p>\n<p><span class=\"token keyword\">public<\/span> <span class=\"token class-name\">User<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">Long<\/span> id<span class=\"token punctuation\">,<\/span> <span class=\"token annotation punctuation\">&#064;NonNull<\/span> <span class=\"token class-name\">String<\/span> name<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>name <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token keyword\">null<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token keyword\">throw<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token class-name\">NullPointerException<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;name is marked non-null but is null&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>id <span class=\"token operator\">&#061;<\/span> id<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>name <span class=\"token operator\">&#061;<\/span> name<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h5>2.\u7528\u4e8eSpring Bean\u7684\u6784\u9020\u51fd\u6570\u6ce8\u5165<\/h5>\n<p>&#064;RequiredArgsConstructor\u5e38\u5e38\u548c&#064;Autowired\u4e00\u8d77\u4f7f\u7528&#xff0c;\u4ee5\u6b64\u5b9e\u73b0Spring Bean\u7684\u6784\u9020\u51fd\u6570\u6ce8\u5165\u3002 \u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">lombok<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">RequiredArgsConstructor<\/span><\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">org<span class=\"token punctuation\">.<\/span>springframework<span class=\"token punctuation\">.<\/span>stereotype<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">Service<\/span><\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token annotation punctuation\">&#064;Service<\/span><br \/>\n<span class=\"token annotation punctuation\">&#064;RequiredArgsConstructor<\/span><br \/>\n<span class=\"token keyword\">public<\/span> <span class=\"token keyword\">class<\/span> <span class=\"token class-name\">UserService<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">private<\/span> <span class=\"token keyword\">final<\/span> <span class=\"token class-name\">UserRepository<\/span> userRepository<span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ final\u5b57\u6bb5<\/span><br \/>\n    <span class=\"token keyword\">private<\/span> <span class=\"token keyword\">final<\/span> <span class=\"token class-name\">EmailService<\/span> emailService<span class=\"token punctuation\">;<\/span>    <span class=\"token comment\">\/\/ final\u5b57\u6bb5<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u7f16\u8bd1\u4e4b\u540e&#xff0c;\u4f1a\u751f\u6210\u5982\u4e0b\u6784\u9020\u51fd\u6570&#xff1a;<\/p>\n<p><span class=\"token annotation punctuation\">&#064;Service<\/span><br \/>\n<span class=\"token keyword\">public<\/span> <span class=\"token keyword\">class<\/span> <span class=\"token class-name\">UserService<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">private<\/span> <span class=\"token keyword\">final<\/span> <span class=\"token class-name\">UserRepository<\/span> userRepository<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">private<\/span> <span class=\"token keyword\">final<\/span> <span class=\"token class-name\">EmailService<\/span> emailService<span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token keyword\">public<\/span> <span class=\"token class-name\">UserService<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">UserRepository<\/span> userRepository<span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">EmailService<\/span> emailService<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>userRepository <span class=\"token operator\">&#061;<\/span> userRepository<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>emailService <span class=\"token operator\">&#061;<\/span> emailService<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>Spring 4.3 \u4e4b\u540e\u65e0\u9700\u663e\u5f0f\u4f7f\u7528 &#064;Autowired \u5728 Spring 4.3 \u53ca\u540e\u7eed\u7248\u672c\u4e2d&#xff0c;\u5982\u679c\u4e00\u4e2a\u7c7b\u53ea\u6709\u552f\u4e00\u7684\u6784\u9020\u51fd\u6570&#xff0c;\u90a3\u4e48\u8fd9\u4e2a\u6784\u9020\u51fd\u6570\u7684 &gt;&#064;Autowired \u6ce8\u89e3\u662f\u53ef\u4ee5\u7701\u7565\u7684\u3002Spring \u80fd\u591f\u81ea\u52a8\u8bc6\u522b\u5e76\u5b8c\u6210\u4f9d\u8d56\u6ce8\u5165\u3002\u4f8b\u5982&#xff1a;<\/p>\n<p> <span class=\"token annotation punctuation\">&#064;Service<\/span><br \/>\n<span class=\"token annotation punctuation\">&#064;RequiredArgsConstructor<\/span> <span class=\"token comment\">\/\/ \u751f\u6210\u552f\u4e00\u7684\u6784\u9020\u51fd\u6570<\/span><br \/>\n<span class=\"token keyword\">public<\/span> <span class=\"token keyword\">class<\/span> <span class=\"token class-name\">UserService<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n   <span class=\"token keyword\">private<\/span> <span class=\"token keyword\">final<\/span> <span class=\"token class-name\">UserRepository<\/span> userRepository<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u4e0a\u9762\u7684\u4ee3\u7801\u5728\u7f16\u8bd1\u4e4b\u540e\u4f1a\u751f\u6210\u5982\u4e0b\u6784\u9020\u51fd\u6570&#xff1a;<\/p>\n<p> <span class=\"token keyword\">public<\/span> <span class=\"token class-name\">UserService<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">UserRepository<\/span> userRepository<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n   <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>userRepository <span class=\"token operator\">&#061;<\/span> userRepository<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u6b64\u65f6&#xff0c;Spring \u4f1a\u81ea\u52a8\u6ce8\u5165 UserRepository&#xff0c;\u65e0\u9700\u6dfb\u52a0 &#064;Autowired\u3002 \u5b58\u5728\u591a\u4e2a\u6784\u9020\u51fd\u6570\u65f6\u9700\u8981\u663e\u5f0f\u4f7f\u7528 &#064;Autowired \u5f53\u7c7b\u4e2d\u5b58\u5728\u591a\u4e2a\u6784\u9020\u51fd\u6570&#xff0c;\u5e76\u4e14\u4f60\u5e0c\u671b Spring \u4f7f\u7528\u7279\u5b9a\u7684\u6784\u9020\u51fd\u6570\u65f6&#xff0c;\u5c31\u9700\u8981\u663e\u5f0f\u6dfb\u52a0 &gt;&#064;Autowired \u6ce8\u89e3\u3002\u793a\u4f8b\u5982\u4e0b&#xff1a;<\/p>\n<p> <span class=\"token annotation punctuation\">&#064;Service<\/span><br \/>\n<span class=\"token annotation punctuation\">&#064;RequiredArgsConstructor<\/span> <span class=\"token comment\">\/\/ \u751f\u6210\u6784\u9020\u51fd\u65701<\/span><br \/>\n<span class=\"token keyword\">public<\/span> <span class=\"token keyword\">class<\/span> <span class=\"token class-name\">UserService<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n   <span class=\"token keyword\">private<\/span> <span class=\"token keyword\">final<\/span> <span class=\"token class-name\">UserRepository<\/span> userRepository<span class=\"token punctuation\">;<\/span><\/p>\n<p>   <span class=\"token annotation punctuation\">&#064;Autowired<\/span> <span class=\"token comment\">\/\/ \u663e\u5f0f\u6307\u5b9a\u4f7f\u7528\u8fd9\u4e2a\u6784\u9020\u51fd\u6570<\/span><br \/>\n   <span class=\"token keyword\">public<\/span> <span class=\"token class-name\">UserService<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">UserRepository<\/span> userRepository<span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">OtherService<\/span> otherService<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n       <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>userRepository <span class=\"token operator\">&#061;<\/span> userRepository<span class=\"token punctuation\">;<\/span><br \/>\n       <span class=\"token comment\">\/\/ \u5176\u4ed6\u903b\u8f91<\/span><br \/>\n   <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h5>\u6ce8\u610f\u4e8b\u9879<\/h5>\n<li>final\u5b57\u6bb5\u5fc5\u987b\u521d\u59cb\u5316&#xff1a;\u5982\u679c\u7c7b\u4e2d\u6709final\u5b57\u6bb5&#xff0c;\u90a3\u4e48\u8fd9\u4e9b\u5b57\u6bb5\u5fc5\u987b\u5728\u6784\u9020\u51fd\u6570\u4e2d\u8fdb\u884c\u521d\u59cb\u5316&#xff0c;\u5426&gt;\u5219\u4f1a\u51fa\u73b0\u7f16\u8bd1\u9519\u8bef\u3002<\/li>\n<li>\u907f\u514d\u4e0e&#064;AllArgsConstructor\u540c\u65f6\u4f7f\u7528&#xff1a;&#064;RequiredArgsConstructor\u548c&#064;AllArgsConstructor\u90fd\u7528&gt;\u4e8e\u751f\u6210\u6784\u9020\u51fd\u6570&#xff0c;\u540c\u65f6\u4f7f\u7528\u53ef\u80fd\u4f1a\u9020\u6210\u51b2\u7a81\u3002<\/li>\n<li>\u9759\u6001\u5b57\u6bb5\u88ab\u5ffd\u7565&#xff1a;\u9759\u6001\u5b57\u6bb5\u4e0d\u4f1a\u53c2\u4e0e\u6784\u9020\u51fd\u6570\u7684\u751f\u6210\u3002<\/li>\n<li>\u53c2\u6570\u987a\u5e8f&#xff1a;\u6784\u9020\u51fd\u6570\u4e2d\u53c2\u6570\u7684\u987a\u5e8f\u548c\u7c7b\u4e2d\u5b57\u6bb5\u7684\u58f0\u660e\u987a\u5e8f\u662f\u4e00\u81f4\u7684\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb110\u6b21\uff0c\u70b9\u8d5e3\u6b21\uff0c\u6536\u85cf2\u6b21\u3002lombok\u5e38\u7528\u6ce8\u89e3\u603b\u7ed3<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,4256],"topic":[],"class_list":["post-45041","post","type-post","status-publish","format-standard","hentry","category-server","tag-java","tag-lombok"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Lombok\u5e38\u7528\u6ce8\u89e3\u603b\u7ed3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/45041.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Lombok\u5e38\u7528\u6ce8\u89e3\u603b\u7ed3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb110\u6b21\uff0c\u70b9\u8d5e3\u6b21\uff0c\u6536\u85cf2\u6b21\u3002lombok\u5e38\u7528\u6ce8\u89e3\u603b\u7ed3\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/45041.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-21T18:23:02+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/45041.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/45041.html\",\"name\":\"Lombok\u5e38\u7528\u6ce8\u89e3\u603b\u7ed3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-21T18:23:02+00:00\",\"dateModified\":\"2025-06-21T18:23:02+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/45041.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/45041.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/45041.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lombok\u5e38\u7528\u6ce8\u89e3\u603b\u7ed3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Lombok\u5e38\u7528\u6ce8\u89e3\u603b\u7ed3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/45041.html","og_locale":"zh_CN","og_type":"article","og_title":"Lombok\u5e38\u7528\u6ce8\u89e3\u603b\u7ed3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb110\u6b21\uff0c\u70b9\u8d5e3\u6b21\uff0c\u6536\u85cf2\u6b21\u3002lombok\u5e38\u7528\u6ce8\u89e3\u603b\u7ed3","og_url":"https:\/\/www.wsisp.com\/helps\/45041.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-21T18:23:02+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/45041.html","url":"https:\/\/www.wsisp.com\/helps\/45041.html","name":"Lombok\u5e38\u7528\u6ce8\u89e3\u603b\u7ed3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-21T18:23:02+00:00","dateModified":"2025-06-21T18:23:02+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/45041.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/45041.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/45041.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Lombok\u5e38\u7528\u6ce8\u89e3\u603b\u7ed3"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/45041","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=45041"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/45041\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=45041"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=45041"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=45041"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=45041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}