{"id":39632,"date":"2023-06-04T03:14:47","date_gmt":"2023-06-03T06:00:12","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%98%a5%e5%ad%a3%e8%b5%b7%e5%8b%95%ef%bc%88%e5%bc%80%e7%ab%af%ef%bc%89\/"},"modified":"2024-04-30T07:15:43","modified_gmt":"2024-04-29T23:15:43","slug":"%e6%98%a5%e5%ad%a3%e8%b5%b7%e5%8b%95%ef%bc%88%e5%bc%80%e7%ab%af%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%98%a5%e5%ad%a3%e8%b5%b7%e5%8b%95%ef%bc%88%e5%bc%80%e7%ab%af%ef%bc%89\/","title":{"rendered":"\u6625\u5b63\u8d77\u52d5\uff08\u5f00\u7aef\uff09"},"content":{"rendered":"<h2>\u8d77\u521d\/ \u9996\u5148\/ \u958b\u59cb<\/h2>\n<p>\u666e\u901a\u60c5\u51b5\u4e0b\uff0c\u6211\u4e0d\u4f7f\u7528Java\uff0c\u4f46\u6709\u4e9b\u516c\u53f8\u53ef\u80fd\u4f1a\u6709\u4e00\u4e9b\u57fa\u4e8eJava\u7684\u7cfb\u7edf\uff0c\u6240\u4ee5\u4e3a\u4e86\u5b66\u4e60\u7684\u76ee\u7684\uff0c\u6211\u8bd5\u7740\u6784\u5efa\u4e86\u4e00\u4e2a\u3002\u8fd9\u6b21\u6211\u7528\u7684\u662fSpring Boot CLI\u3002<\/p>\n<p>\u6211\u53c2\u8003\u4e86\u4ee5\u4e0b\u5185\u5bb9\uff1a<br \/>\nhttps:\/\/projects.spring.io\/spring-boot\/<br \/>\nhttps:\/\/docs.spring.io\/spring-boot\/docs\/current\/reference\/htmlsingle\/#getting-started-installing-the-cli<\/p>\n<h1>\u73af\u5883<\/h1>\n<p>\u82f9\u679c\u64cd\u4f5c\u7cfb\u7edfSierra<\/p>\n<h2>\u5b89\u88c5<\/h2>\n<p>\u4f7f\u7528curl\u547d\u4ee4\u83b7\u53d6http:\/\/repo.spring.io\/release\/org\/springframework\/boot\/spring-boot-cli\/1.5.4.RELEASE\/spring-boot-cli-1.5.4.RELEASE-bin.tar.gz\u6587\u4ef6\u7684\u5185\u5bb9\u3002<\/p>\n<h2>\u5b89\u88c5SDK<\/h2>\n<p>\u4f7f\u7528curl\u547d\u4ee4\u4e0b\u8f7d&#8221;get.sdkman.io&#8221;\u7f51\u5740\u7684\u5185\u5bb9\uff0c\u5e76\u4f7f\u7528bash\u6765\u6267\u884c\u3002<\/p>\n<h2>\u5b89\u88c5Spring Boot<\/h2>\n<pre class=\"post-pre\"><code>$ sdk install springboot\r\n$ spring --version\r\nSpring CLI v1.5.4.RELEASE\r\n<\/code><\/pre>\n<h2>\u73af\u5883<\/h2>\n<pre class=\"post-pre\"><code>$ sdk install springboot dev ~\/Downloads\/spring-1.5.4.RELEASE\/\r\n$ sdk default springboot dev\r\n$ spring --version\r\nSpring CLI v1.5.4.RELEASE\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>$ sdk ls springboot\r\n\r\n================================================================================\r\nAvailable Springboot Versions\r\n================================================================================\r\n &gt; + dev                  1.4.0.M3             1.3.0.M1             1.1.4.RELEASE\r\n   * 1.5.4.RELEASE        1.3.8.RELEASE        1.2.8.RELEASE        1.1.3.RELEASE\r\n     1.5.3.RELEASE        1.3.7.RELEASE        1.2.7.RELEASE        1.1.2.RELEASE\r\n     1.5.2.RELEASE        1.3.6.RELEASE        1.2.6.RELEASE        1.1.12.RELEASE\r\n     1.5.1.RELEASE        1.3.5.RELEASE        1.2.5.RELEASE        1.1.11.RELEASE\r\n     1.5.0.RC1            1.3.4.RELEASE        1.2.4.RELEASE        1.1.10.RELEASE\r\n     1.4.7.RELEASE        1.3.3.RELEASE        1.2.3.RELEASE        1.1.1.RELEASE\r\n     1.4.6.RELEASE        1.3.2.RELEASE        1.2.2.RELEASE        1.1.0.RELEASE\r\n     1.4.5.RELEASE        1.3.1.RELEASE        1.2.1.RELEASE        1.0.2.RELEASE\r\n     1.4.4.RELEASE        1.3.0.RELEASE        1.2.0.RELEASE        1.0.1.RELEASE\r\n     1.4.3.RELEASE        1.3.0.RC1            1.1.9.RELEASE        1.0.0.RELEASE\r\n     1.4.2.RELEASE        1.3.0.M5             1.1.8.RELEASE\r\n     1.4.1.RELEASE        1.3.0.M4             1.1.7.RELEASE\r\n     1.4.0.RELEASE        1.3.0.M3             1.1.6.RELEASE\r\n     1.4.0.RC1            1.3.0.M2             1.1.5.RELEASE\r\n\r\n================================================================================\r\n+ - local version\r\n* - installed\r\n&gt; - currently in use\r\n================================================================================\r\n<\/code><\/pre>\n<h2>\u5b89\u88c5\u5564\u9152<\/h2>\n<pre class=\"post-pre\"><code>$ brew tap pivotal\/tap\r\n$ brew install springboot\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>$ chmod 777  ~\/Downloads\/spring-1.5.4.RELEASE\/shell-completion\/bash\/spring\r\n$  ~\/Downloads\/spring-1.5.4.RELEASE\/shell-completion\/bash\/spring\r\n<\/code><\/pre>\n<h2>\u7f16\u8f91 app.groovy<\/h2>\n<pre class=\"post-pre\"><code>@RestController\r\nclass ThisWillActuallyRun {\r\n\r\n    @RequestMapping(\"\/\")\r\n    String home() {\r\n        \"Hello World!\"\r\n    }\r\n\r\n}\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>spring run app.groovy\r\nResolving dependencies..............\r\n\r\n  .   ____          _            __ _ _\r\n \/\\\\ \/ ___'_ __ _ _(_)_ __  __ _ \\ \\ \\ \\\r\n( ( )\\___ | '_ | '_| | '_ \\\/ _` | \\ \\ \\ \\\r\n \\\\\/  ___)| |_)| | | | | || (_| |  ) ) ) )\r\n  '  |____| .__|_| |_|_| |_\\__, | \/ \/ \/ \/\r\n =========|_|==============|___\/=\/_\/_\/_\/\r\n :: Spring Boot ::        (v1.5.4.RELEASE)\r\n\r\n<\/code><\/pre>\n<h2>\u8bf7\u8bbf\u95ee\u672c\u5730\u4e3b\u673a\u76848080\u7aef\u53e3\u3002<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3ba337434c4406c81e60\/21-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-07-24 15.54.08.png\" \/><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u8d77\u521d\/ \u9996\u5148\/ \u958b\u59cb \u666e\u901a\u60c5\u51b5\u4e0b\uff0c\u6211\u4e0d\u4f7f\u7528Java\uff0c\u4f46\u6709\u4e9b\u516c\u53f8\u53ef\u80fd\u4f1a\u6709\u4e00\u4e9b\u57fa\u4e8eJava\u7684\u7cfb\u7edf\uff0c\u6240\u4ee5\u4e3a\u4e86\u5b66\u4e60\u7684\u76ee [&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-39632","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>\u6625\u5b63\u8d77\u52d5\uff08\u5f00\u7aef\uff09 - 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\/\u6625\u5b63\u8d77\u52d5\uff08\u5f00\u7aef\uff09\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6625\u5b63\u8d77\u52d5\uff08\u5f00\u7aef\uff09\" \/>\n<meta property=\"og:description\" content=\"\u8d77\u521d\/ \u9996\u5148\/ \u958b\u59cb \u666e\u901a\u60c5\u51b5\u4e0b\uff0c\u6211\u4e0d\u4f7f\u7528Java\uff0c\u4f46\u6709\u4e9b\u516c\u53f8\u53ef\u80fd\u4f1a\u6709\u4e00\u4e9b\u57fa\u4e8eJava\u7684\u7cfb\u7edf\uff0c\u6240\u4ee5\u4e3a\u4e86\u5b66\u4e60\u7684\u76ee [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6625\u5b63\u8d77\u52d5\uff08\u5f00\u7aef\uff09\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-03T06:00:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T23:15:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3ba337434c4406c81e60\/21-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%98%a5%e5%ad%a3%e8%b5%b7%e5%8b%95%ef%bc%88%e5%bc%80%e7%ab%af%ef%bc%89\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%98%a5%e5%ad%a3%e8%b5%b7%e5%8b%95%ef%bc%88%e5%bc%80%e7%ab%af%ef%bc%89\/\",\"name\":\"\u6625\u5b63\u8d77\u52d5\uff08\u5f00\u7aef\uff09 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-06-03T06:00:12+00:00\",\"dateModified\":\"2024-04-29T23:15:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%98%a5%e5%ad%a3%e8%b5%b7%e5%8b%95%ef%bc%88%e5%bc%80%e7%ab%af%ef%bc%89\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%98%a5%e5%ad%a3%e8%b5%b7%e5%8b%95%ef%bc%88%e5%bc%80%e7%ab%af%ef%bc%89\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%98%a5%e5%ad%a3%e8%b5%b7%e5%8b%95%ef%bc%88%e5%bc%80%e7%ab%af%ef%bc%89\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6625\u5b63\u8d77\u52d5\uff08\u5f00\u7aef\uff09\"}]},{\"@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%98%a5%e5%ad%a3%e8%b5%b7%e5%8b%95%ef%bc%88%e5%bc%80%e7%ab%af%ef%bc%89\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u6625\u5b63\u8d77\u52d5\uff08\u5f00\u7aef\uff09 - 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\/\u6625\u5b63\u8d77\u52d5\uff08\u5f00\u7aef\uff09\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6625\u5b63\u8d77\u52d5\uff08\u5f00\u7aef\uff09","og_description":"\u8d77\u521d\/ \u9996\u5148\/ \u958b\u59cb \u666e\u901a\u60c5\u51b5\u4e0b\uff0c\u6211\u4e0d\u4f7f\u7528Java\uff0c\u4f46\u6709\u4e9b\u516c\u53f8\u53ef\u80fd\u4f1a\u6709\u4e00\u4e9b\u57fa\u4e8eJava\u7684\u7cfb\u7edf\uff0c\u6240\u4ee5\u4e3a\u4e86\u5b66\u4e60\u7684\u76ee [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u6625\u5b63\u8d77\u52d5\uff08\u5f00\u7aef\uff09\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-06-03T06:00:12+00:00","article_modified_time":"2024-04-29T23:15:43+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3ba337434c4406c81e60\/21-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%98%a5%e5%ad%a3%e8%b5%b7%e5%8b%95%ef%bc%88%e5%bc%80%e7%ab%af%ef%bc%89\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%98%a5%e5%ad%a3%e8%b5%b7%e5%8b%95%ef%bc%88%e5%bc%80%e7%ab%af%ef%bc%89\/","name":"\u6625\u5b63\u8d77\u52d5\uff08\u5f00\u7aef\uff09 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-06-03T06:00:12+00:00","dateModified":"2024-04-29T23:15:43+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%98%a5%e5%ad%a3%e8%b5%b7%e5%8b%95%ef%bc%88%e5%bc%80%e7%ab%af%ef%bc%89\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e6%98%a5%e5%ad%a3%e8%b5%b7%e5%8b%95%ef%bc%88%e5%bc%80%e7%ab%af%ef%bc%89\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%98%a5%e5%ad%a3%e8%b5%b7%e5%8b%95%ef%bc%88%e5%bc%80%e7%ab%af%ef%bc%89\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6625\u5b63\u8d77\u52d5\uff08\u5f00\u7aef\uff09"}]},{"@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%98%a5%e5%ad%a3%e8%b5%b7%e5%8b%95%ef%bc%88%e5%bc%80%e7%ab%af%ef%bc%89\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39632","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=39632"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39632\/revisions"}],"predecessor-version":[{"id":90477,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39632\/revisions\/90477"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=39632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=39632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=39632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}