{"id":39698,"date":"2024-01-18T07:27:37","date_gmt":"2022-12-05T10:30:19","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%8c%91%e6%88%98spring-boot\/"},"modified":"2024-05-04T18:52:54","modified_gmt":"2024-05-04T10:52:54","slug":"%e6%8c%91%e6%88%98spring-boot","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%8c%91%e6%88%98spring-boot\/","title":{"rendered":"\u6311\u6218Spring Boot"},"content":{"rendered":"<h1>\u9996\u5148<\/h1>\n<p>\u300c\u53ef\u4ee5\u628a\u5b83\u505a\u6210\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u4e86\u5427\uff1f\u300d<\/p>\n<p>\u56e0\u6b64\uff0c\u6211\u4eec\u6311\u6218\u5c06\u6b64\u524d\u53ea\u80fd\u5728\u63a7\u5236\u53f0\u4e0a\u6267\u884c\u7684\u9ed1\u767d\u68cb\u7a0b\u5e8f\u63d0\u5347\u4e3aWeb\u5e94\u7528\u7a0b\u5e8f\u3002\u8fd9\u6b21\u6211\u4eec\u5c06\u4f7f\u7528Spring Boot\uff0c\u5b83\u88ab\u8ba4\u4e3a\u662fSpring Framework\u4e2d\u6700\u7b80\u5355\u7684\u7528\u4e8e\u6784\u5efaWeb\u5e94\u7528\u7a0b\u5e8f\u7684\u5de5\u5177\u4e4b\u4e00\uff0c\u5728\u6b64\u57fa\u7840\u4e0a\u521b\u5efa\u4e00\u4e2a\u793a\u4f8b\u7ea7\u522b\u7684\u9879\u76ee\u3002<\/p>\n<p>\u53e6\u5916\u9700\u8981\u8bf4\u660e\u7684\u662f\uff0c\u8be5\u8bb0\u8ff0\u4ec5\u4f5c\u4e3a\u5907\u5fd8\u5f55\uff0c\u51e0\u4e4e\u6ca1\u6709\u6280\u672f\u89e3\u91ca\uff0c\u53ea\u8bb0\u5f55\u4e86\u5b9e\u9645\u64cd\u4f5c\u7684\u6b65\u9aa4\u3002\u6211\u4eec\u53c2\u8003\u4e86\u5404\u79cd\u4e66\u7c4d\u548c\u7f51\u7ad9\uff0c\u4f46\u7531\u4e8e\u5176\u9ed1\u9b54\u8853\u822c\u7684\u9ed1\u76d2\u7279\u6027\uff0c\u6211\u4eec\u5c06\u91c7\u53d6\u4e0eGit\u76f8\u5173\u7c7b\u4f3c\u7684\u201c\u53ea\u8981\u80fd\u6b63\u5e38\u5de5\u4f5c\u5c31\u597d\u201d\u7684\u65b9\u9488\u8fdb\u884c\u63a8\u8fdb\u3002<\/p>\n<h1>\u4f7f\u7528Eclipse\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Spring Boot\u9879\u76ee\u3002<\/h1>\n<p>\u521b\u5efaSpring Boot\u9879\u76ee\u6709\u5404\u79cd\u65b9\u6cd5\u53ef\u9009\uff0c\u4f46\u7531\u4e8e\u6211\u4e4b\u524d\u4e00\u76f4\u5728Eclipse\u4e0a\u5f00\u53d1\uff0c\u6240\u4ee5\u6211\u51b3\u5b9a\u5728Eclipse\u4e2d\u5b89\u88c5STS\uff08Spring Tool Suite\uff09\u63d2\u4ef6\u3002<\/p>\n<h3>\u5c06STS\uff08Spring Tool Suite\uff09\u5b89\u88c5\u548c\u914d\u7f6e\u5230Eclipse\u7684\u8fc7\u7a0b<\/h3>\n<ol>\u4eceEclipse\u83dc\u5355\u680f\u4e2d\u9009\u62e9\u5e2e\u52a9\u2192Eclipse\u5e02\u573a\u3002\u5728\u641c\u7d22\u680f\u4e2d\u8f93\u5165STS\u5e76\u70b9\u51fb\u641c\u7d22\u3002\u4ece\u641c\u7d22\u7ed3\u679c\u4e2d\u9009\u62e9Spring Tools\uff08\u7248\u672c\u4e3a3.9.5\uff09\u3002\u70b9\u51fb\u201c\u5b89\u88c5\u201d\u2192\u70b9\u51fb\u201c\u786e\u8ba4\u201d\u2192\u9009\u62e9\u201c\u540c\u610f\u4f7f\u7528\u6761\u6b3e\u201d\u2192\u70b9\u51fb\u201c\u5b8c\u6210\u201d\u3002\u5b89\u88c5\u5f00\u59cb\u540e\uff0c\u4f1a\u8be2\u95ee\u662f\u5426\u63a5\u53d7\u67d0\u4e9b\u5185\u5bb9\uff0c\u63a5\u53d7\u5373\u53ef\u3002\uff08\u7531\u4e8e\u51b2\u52a8\u70b9\u51fb\u4e86\u6309\u94ae\uff0c\u6240\u4ee5\u4e0d\u77e5\u9053\u5177\u4f53\u5185\u5bb9\u662f\u4ec0\u4e48\u2026\u2026\uff09\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f1a\u63d0\u793a\u91cd\u65b0\u542f\u52a8Eclipse\uff0c\u91cd\u65b0\u542f\u52a8\u540e\u4f1a\u51fa\u73b0\u6982\u8ff0\u753b\u9762\uff0c\u70b9\u51fb\u5de5\u4f5c\u53f0\u3002\u4ece\u83dc\u5355\u680f\u4e2d\u9009\u62e9\u7a97\u53e3\u2192\u900f\u89c6\u56fe\u2192\u6253\u5f00\u900f\u89c6\u56fe\u2192\u8fdb\u5165\u5176\u4ed6\u9009\u9879\u3002\u9009\u62e9Spring\uff0c\u7136\u540e\u70b9\u51fb\u6253\u5f00\u3002<\/ol>\n<h3>\u521b\u5efaSpring\u9879\u76ee\u7684\u6b65\u9aa4\u3002<\/h3>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u5728\u900f\u8996\u5716\u4e2d\u9078\u64c7Spring\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u5f9e\u83dc\u55ae\u6b04\u9078\u64c7\u6587\u4ef6\u2192\u65b0\u5efa\u2192Spring\u8d77\u52d5\u5668\u9805\u76ee\u9032\u5165\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u5728\u9805\u76ee\u540d\u7a31\u4e2d\u8f38\u5165MyOthelloApp\uff0c\u9078\u64c7Gradle (Buildship 2.x)\u4f5c\u70ba\u985e\u578b\uff0c\u9078\u64c7Java\u7248\u672c8\uff0c\u8f38\u5165com.myothello\u4f5c\u70ba\u7d44\u540d\uff0c\u8f38\u5165MyOthello project\u4f5c\u70ba\u63cf\u8ff0\uff0c\u8f38\u5165com.myothello\u4f5c\u70ba\u5305\u540d\uff0c\u9ede\u64ca\u4e0b\u4e00\u6b65\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u9078\u64c7Web\uff0c\u9ede\u64ca\u4e0b\u4e00\u6b65\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u9ede\u64ca\u5b8c\u6210\u3002<\/ol>\n<h3>\u67e5\u770b\u6e90\u4ee3\u7801<\/h3>\n<p>\u5728src\/main\/java\u6587\u4ef6\u5939\u4e2d\u521b\u5efa\u4e86com.example.demo\u6587\u4ef6\u5939\uff0c\u5176\u4e2d\u5305\u542bMyOthelloAppApplication.java\u6587\u4ef6\u3002<\/p>\n<details>\u6211\u7684OthelloAppApplication.java\uff08\u70b9\u51fb\u6253\u5f00\uff09package com.myothello;<\/p>\n<p>import org.springframework.boot.SpringApplication;<br \/>\nimport org.springframework.boot.autoconfigure.SpringBootApplication;<\/p>\n<p>@SpringBootApplication<br \/>\npublic class MyOthelloAppApplication {<\/p>\n<p>public static void main(String[] args) {<br \/>\nSpringApplication.run(MyOthelloAppApplication.class, args);<br \/>\n}<\/p>\n<p>}<\/p>\n<\/details>\n<p>\u5728MyOthelloAppApplication\u7c7b\u7684\u9876\u90e8\uff0c\u4ee5@\u5f00\u5934\u7684\u884c\u662f\u6ce8\u89e3\uff0c\u5b83\u660e\u786e\u4e86\u5e94\u7528\u7a0b\u5e8f\u5185\u7684\u5404\u79cd\u89d2\u8272\u3002\u4e0a\u8ff0\u7684SpringBootApplication\u8868\u793a\u8fd9\u662f\u4e00\u4e2a\u4f7f\u7528Spring Boot\u542f\u52a8\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>\u6211\u4f1a\u8bd5\u7740\u8fd0\u884c\u4e00\u4e0b\u3002\u5728MyOthelloApp\u7684\u540d\u79f0\u4e0a\u53f3\u952e\u5355\u51fb\uff0c\u9009\u62e9\u4ee5SpringBoot\u5e94\u7528\u7a0b\u5e8f\u65b9\u5f0f\u8fd0\u884c\uff0c\u7136\u540e\u5728\u63a7\u5236\u53f0\u4e0a\u663e\u793a\u4ee5\u4e0b\u6d88\u606f\uff08\u6458\u5f55\uff09\u3002<\/p>\n<p>T\u0101 sh\u00ed \u3002 MyOthelloApp de j\u012b, y\u01d0 SpringBoot sh\u00ec , . (\u4ed6\u6bcf\u9694\u4e00\u6bb5\u505a\u4e86\u4e00\u4e0b\u8bd5\u7528\u3002\u5728MyOthelloApp\u7684\u540d\u79f0\u4e0a\u53f3\u952e\u5355\u51fb\uff0c\u9009\u62e9\u4ee5SpringBoot\u5e94\u7528\u7a0b\u5e8f\u65b9\u5f0f\u8fd0\u884c\uff0c\u7136\u540e\u5728\u63a7\u5236\u53f0\u4e0a\u663e\u793a\u4ee5\u4e0b\u6d88\u606f\uff08\u6458\u5f55\uff09\u9664\u4e86\u3002)<\/p>\n<pre class=\"post-pre\"><code>***************************\r\nAPPLICATION FAILED TO START\r\n***************************\r\n\r\nDescription:\r\n\r\nThe Tomcat connector configured to listen on port 8080 failed to start. \r\nThe port may already be in use or the connector may be misconfigured.\r\n<\/code><\/pre>\n<p>\u7531\u4e8eTomcat\u5df2\u7ecf\u5360\u7528\u4e868080\u7aef\u53e3\uff0c\u6240\u4ee5\u6211\u9700\u8981\u8be2\u95eeGoogle\u5927\u5e08\u3002\u6211\u627e\u5230\u4e86\u4e00\u7bc7\u9875\u9762\uff08\u94fe\u63a5\u5728\u8fd9\u91cc\uff09\uff0c\u4e0a\u9762\u5199\u7740\u53ef\u4ee5\u5f3a\u5236\u7ec8\u6b62\u6b63\u5728\u4f7f\u75288080\u7aef\u53e3\u7684\u8fdb\u7a0b\uff0c\u6211\u4f1a\u53c2\u8003\u8fd9\u7bc7\u9875\u9762\u8fdb\u884c\u64cd\u4f5c\u3002\u901a\u8fc7\u547d\u4ee4\u63d0\u793a\u7b26\u5b9e\u73b0\u3002<\/p>\n<pre class=\"post-pre\"><code>netstat -ao | find \"8080\"\r\n<\/code><\/pre>\n<p>\u5728\u8f93\u5165\u6846\u4e2d\u952e\u5165\u4ee5\u4e0a\u5185\u5bb9\u3002\u7136\u540e\uff0c\u67e5\u627e\u6b63\u5728\u4f7f\u75288080\u7aef\u53e3\u7684PID\uff0c\u672c\u6b21\u7ed3\u679c\u4e3a10572\uff0c\u63a5\u4e0b\u6765\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\u3002<\/p>\n<pre class=\"post-pre\"><code>Taskill \/PID 10572 \/F\r\n<\/code><\/pre>\n<p>\u8f93\u5165&#8221;localhost:8080&#8243;\u540e\uff0c\u53ef\u4ee5\u8bbf\u95ee\u5230\u7f51\u9875\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3be837434c4406c82b3c\/23-0.png\" alt=\"HelloOthello_Whitelabel.png\" \/><\/div>\n<p>\u56e0\u4e3a\u9875\u9762\u7684\u5185\u5bb9\uff08\u63a7\u5236\u5668\uff09\u5c1a\u672a\u786e\u5b9a\uff0c\u6240\u4ee5\u4f1a\u663e\u793a404\u9519\u8bef\u3002\u73b0\u5728\u8fd9\u6837\u662f\u53ef\u4ee5\u7684\u3002<\/p>\n<h1>\u6682\u65f6\u5148\u8bf4\u4e00\u4e0b\u300c\u4f60\u597d\u5965\u8d5b\u7f57\u300d<\/h1>\n<p>\u6211\u5011\u8981\u5728\u7db2\u9801\u61c9\u7528\u7a0b\u5f0f\u4e2d\u986f\u793a\u300cHallo world\u300d\uff0c\u6216\u8005\u8aaa\u300cHello othello\u300d\u3002<\/p>\n<p>\u5728Spring Boot\u4e2d\uff0cWeb\u5e94\u7528\u7a0b\u5e8f\u662f\u6839\u636eMVC\u67b6\u6784\u6765\u8bbe\u8ba1\u7684\u3002M\u4ee3\u8868Model\uff08\u5e94\u7528\u7a0b\u5e8f\u4e2d\u4f7f\u7528\u7684\u6570\u636e\uff09\uff0cV\u4ee3\u8868View\uff08\u9875\u9762\u663e\u793a\uff09\uff0cC\u4ee3\u8868Controller\uff08\u5904\u7406\u63a7\u5236\uff09\u3002\u9996\u5148\uff0c\u9700\u8981\u521b\u5efaController\u3002<\/p>\n<h3>\u521b\u5efaMyOthelloAppController\u7c7b<\/h3>\n<p>\u5728\u4e0eMyOthelloAppApplication.java\u76f8\u540c\u7684\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u540d\u4e3aMyOthelloAppController.java\u7684\u6587\u4ef6\u3002\u5728\u6b64\u8fc7\u7a0b\u4e2d\uff0c\u52fe\u9009&#8221;\u7ee7\u627f\u7684\u62bd\u8c61\u65b9\u6cd5&#8221;\u9009\u9879\u3002\u7136\u540e\uff0c\u5728MyOthelloAppController\u7c7b\u4e2d\u7f16\u5199\u663e\u793a&#8221;Hello othello&#8221;\u7684\u4ee3\u7801\u3002<\/p>\n<details>\u6211\u7684OthelloAppController\u7c7b\uff08\u70b9\u51fb\u53ef\u4ee5\u6253\u5f00\uff09package com.myothello;<\/p>\n<p>import org.springframework.web.bind.annotation.RequestMapping;<br \/>\nimport org.springframework.web.bind.annotation.RestController;<\/p>\n<p>@RestController<br \/>\npublic class MyOthelloAppController {<br \/>\n@RequestMapping(&#8220;\/&#8221;)<br \/>\npublic String hello() {<br \/>\nreturn &#8220;\u4f60\u597d\uff0c\u5965\u8d5b\u7f57&#8221;;<br \/>\n}<br \/>\n}<\/p>\n<\/details>\n<p>\u5f53\u518d\u6b21\u8fd0\u884c\u5e76\u8bbf\u95ee\u5230\u7aef\u53e3\u53f7\u4e3a8080\u7684\u60c5\u51b5\u4e0b&#8230;&#8230;<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3be837434c4406c82b3c\/34-0.png\" alt=\"HelloOthello.png\" \/><\/div>\n<p>\u505a\u5230\u4e86\u3002<\/p>\n<h1>\u672a\u6765\u7684\u6311\u6218<\/h1>\n<p>\u56e0\u6b64\uff0c\u6211\u5011\u5df2\u7d93\u6e96\u5099\u597d\uff08\u53ef\u80fd\u7684\u8a71\uff09\u958b\u767c\u4e00\u500b\u5728\u7db2\u7d61\u4e0a\u904b\u884c\u7684**\u9ed1\u767d\u68cb**\u7a0b\u5e8f\uff0c\u6216\u8005\u8aaa\u662f\u9ed1\u767d\u68cb\u61c9\u7528\u7a0b\u5e8f\u3002\u6211\u5011\u5c07\u91cd\u7528\u4e4b\u524d\u70ba\u63a7\u5236\u53f0\u800c\u5275\u5efa\u7684\u5404\u7a2e\u985e\uff0c\u9996\u5148\u4e3b\u8981\u5be6\u73fe\u63a7\u5236\u5668\u3002<\/p>\n<p>\u611f\u8c22\u60a8\u4ed4\u7ec6\u9605\u8bfb\u81f3\u6b64\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u300c\u53ef\u4ee5\u628a\u5b83\u505a\u6210\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u4e86\u5427\uff1f\u300d \u56e0\u6b64\uff0c\u6211\u4eec\u6311\u6218\u5c06\u6b64\u524d\u53ea\u80fd\u5728\u63a7\u5236\u53f0\u4e0a\u6267\u884c\u7684\u9ed1\u767d\u68cb\u7a0b\u5e8f\u63d0\u5347\u4e3aWeb\u5e94\u7528\u7a0b [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-39698","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6311\u6218Spring Boot - Blog - Silicon Cloud<\/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.silicloud.com\/zh\/blog\/\u6311\u6218spring-boot\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6311\u6218Spring Boot\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u300c\u53ef\u4ee5\u628a\u5b83\u505a\u6210\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u4e86\u5427\uff1f\u300d \u56e0\u6b64\uff0c\u6211\u4eec\u6311\u6218\u5c06\u6b64\u524d\u53ea\u80fd\u5728\u63a7\u5236\u53f0\u4e0a\u6267\u884c\u7684\u9ed1\u767d\u68cb\u7a0b\u5e8f\u63d0\u5347\u4e3aWeb\u5e94\u7528\u7a0b [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6311\u6218spring-boot\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-05T10:30:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T10:52:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3be837434c4406c82b3c\/23-0.png\" \/>\n<meta name=\"author\" content=\"\u79d1, \u9896\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u9896\" \/>\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.silicloud.com\/zh\/blog\/%e6%8c%91%e6%88%98spring-boot\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%8c%91%e6%88%98spring-boot\/\",\"name\":\"\u6311\u6218Spring Boot - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-12-05T10:30:19+00:00\",\"dateModified\":\"2024-05-04T10:52:54+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%8c%91%e6%88%98spring-boot\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%8c%91%e6%88%98spring-boot\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%8c%91%e6%88%98spring-boot\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6311\u6218Spring Boot\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\",\"name\":\"\u79d1, \u9896\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u9896\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%8c%91%e6%88%98spring-boot\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u6311\u6218Spring Boot - Blog - Silicon Cloud","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.silicloud.com\/zh\/blog\/\u6311\u6218spring-boot\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6311\u6218Spring Boot","og_description":"\u9996\u5148 \u300c\u53ef\u4ee5\u628a\u5b83\u505a\u6210\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u4e86\u5427\uff1f\u300d \u56e0\u6b64\uff0c\u6211\u4eec\u6311\u6218\u5c06\u6b64\u524d\u53ea\u80fd\u5728\u63a7\u5236\u53f0\u4e0a\u6267\u884c\u7684\u9ed1\u767d\u68cb\u7a0b\u5e8f\u63d0\u5347\u4e3aWeb\u5e94\u7528\u7a0b [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u6311\u6218spring-boot\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-12-05T10:30:19+00:00","article_modified_time":"2024-05-04T10:52:54+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3be837434c4406c82b3c\/23-0.png"}],"author":"\u79d1, \u9896","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u9896","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%8c%91%e6%88%98spring-boot\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%8c%91%e6%88%98spring-boot\/","name":"\u6311\u6218Spring Boot - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-12-05T10:30:19+00:00","dateModified":"2024-05-04T10:52:54+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%8c%91%e6%88%98spring-boot\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e6%8c%91%e6%88%98spring-boot\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%8c%91%e6%88%98spring-boot\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6311\u6218Spring Boot"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e","name":"\u79d1, \u9896","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","caption":"\u79d1, \u9896"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%8c%91%e6%88%98spring-boot\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=39698"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39698\/revisions"}],"predecessor-version":[{"id":100080,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39698\/revisions\/100080"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=39698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=39698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=39698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}