{"id":39660,"date":"2023-03-28T11:55:51","date_gmt":"2023-01-19T07:11:46","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/mac%e7%9a%84%e7%8e%af%e5%a2%83%e8%ae%be%e7%bd%ae\/"},"modified":"2024-04-29T20:51:30","modified_gmt":"2024-04-29T12:51:30","slug":"mac%e7%9a%84%e7%8e%af%e5%a2%83%e8%ae%be%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/mac%e7%9a%84%e7%8e%af%e5%a2%83%e8%ae%be%e7%bd%ae\/","title":{"rendered":"Mac\u7684\u73af\u5883\u8bbe\u7f6e"},"content":{"rendered":"<p>\u57fa\u672c\u4e0a\u662f\u7ed9\u81ea\u5df1\u4f7f\u7528\u7684\u3002\u53ef\u80fd\u5bf9\u4ed6\u4eba\u4e5f\u6709\u53c2\u8003\u4ef7\u503c\u3002<br \/>\n\u8fd9\u662f\u5728\u8fdb\u884c\u5168\u65b0\u5b89\u88c5\u65f6\u5fc5\u987b\u8981\u505a\u7684\u4e8b\u60c5\u3002<\/p>\n<h1>\u6700\u5f00\u59cb\u9700\u8981\u7684\u4e1c\u897f<\/h1>\n<p>\u4f18\u5316\u952e\u76d8\u7b49\u8bbe\u5907\u7684\u4f7f\u7528\u4f53\u9a8c\u3002<\/p>\n<h2>Xcode\u53ef\u4ee5\u539f\u751f\u5730\u5728\u4e2d\u6587\u73af\u5883\u4e0b\u8fdb\u884c\u7f16\u7a0b\u3002<\/h2>\n<p>\u6211\u4f1a\u5728AppStore\u4e0a\u5b89\u88c5Xcode\u3002<\/p>\n<p>\u6211\u540c\u610f\u4f7f\u7528\u8be5\u547d\u4ee4\u884c\u5de5\u5177\u5e76\u9075\u5b88\u76f8\u5173\u8bb8\u53ef\u8bc1\u3002<\/p>\n<pre class=\"post-pre\"><code>$ xcode-select --install\r\n$ sudo xcodebuild -license accept\r\n<\/code><\/pre>\n<h2>\u81ea\u5236\u917f\u9020<\/h2>\n<p>\u901a\u8fc7\u547d\u4ee4\u884c\u5b89\u88c5\u3002<\/p>\n<pre class=\"post-pre\"><code>$ \/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"\r\n<\/code><\/pre>\n<h2>\u559c\u6b22\u7684\u8bbe\u5b9a<\/h2>\n<p>\u5982\u679c\u5c06\u81ea\u5df1\u4f7f\u7528\u7684dotfile\u6587\u4ef6\u548c\u901a\u8fc7Homebrew\u5b89\u88c5\u7684\u4e1c\u897f\u5b58\u653e\u5728GitHub\u4e0a\u8fdb\u884c\u7ba1\u7406\uff0c\u5e76\u901a\u8fc7\u8fd0\u884cShell\u811a\u672c\uff0c\u53ef\u4ee5\u59cb\u7ec8\u4fdd\u6301\u76f8\u540c\u7684\u73af\u5883\uff0c\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n<p>\u8fd9\u4e2a\u6837\u5b50\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git clone https:\/\/github.com\/ko2ic\/dotfiles.git\r\n$ cd dotfiles\r\n$ .\/dotfiles.sh\r\n$ .\/brewfile.sh\r\n<\/code><\/pre>\n<p>\u7531\u4e8eM1\u548cIntel\u4f7f\u7528\u4e0d\u540c\u7684\u8def\u5f84\uff0c\u56e0\u6b64\u9700\u8981\u6839\u636e\u73af\u5883\u4fee\u6539\u8def\u5f84\u3002<\/p>\n<p>\u4f8b\u5982\uff0c<br \/>\nIntel\u5904\u7406\u5668\u7684vim\u5b89\u88c5\u8def\u5f84\u662f\/usr\/local\/bin\/vim\u3002<br \/>\nM1\u5904\u7406\u5668\u7684vim\u5b89\u88c5\u8def\u5f84\u662f\/opt\/homebrew\/opt\/vim\u3002<\/p>\n<p>\u521b\u5efa\u7b26\u53f7\u94fe\u63a5<\/p>\n<pre class=\"post-pre\"><code>$ sudo ln -s \/opt\/homebrew\/opt\/zplug \/usr\/local\/bin\/zplug\r\n<\/code><\/pre>\n<h2>\u8bbe\u7f6egit<\/h2>\n<p>\u8bf7\u6839\u636e\u4e2a\u4eba\u9700\u8981\u81ea\u884c\u66f4\u6539\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git config --global user.name \"ko2ic\"\r\n$ git config --global user.email ko2ic.dev@gmail.com\r\n$ git config --global core.excludesfile ~\/.gitignore\r\n$ git config --global core.editor \"\/opt\/homebrew\/bin\/vim\" &lt;- M1\u306e\u5834\u5408\r\n$ git config --global core.editor \"\/usr\/local\/bin\/vim\"\r\n$ git config --global merge.tool vimdiff\r\n<\/code><\/pre>\n<h3>SSH\u8fde\u63a5<\/h3>\n<pre class=\"post-pre\"><code>$ ssh-keygen -t rsa -C ko2ic.dev@gmail.com\r\n$ chmod 600 ~\/.ssh\/id_rsa\r\n$ chmod 600 ~\/.ssh\/config\r\n$ vim ~\/.ssh\/config\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>Host github.com\r\n  HostName github.com\r\n  IdentityFile ~\/.ssh\/id_rsa\r\n  User git\r\n<\/code><\/pre>\n<p>\u8bf7\u4e8b\u5148\u66f4\u6539\u6743\u9650<\/p>\n<pre class=\"post-pre\"><code>$ chmod 600 ~\/.ssh\/config\r\n<\/code><\/pre>\n<p>\u5c06\u4ee5\u4e0b\u7ed3\u679c\u7c98\u8d34\u5230Github\u4e0a<\/p>\n<pre class=\"post-pre\"><code>$ pbcopy &lt; ~\/.ssh\/id_rsa.pub\r\n<\/code><\/pre>\n<h3>GPG\u8fdb\u884c\u4e2d\u6587\u7684\u672c\u5730\u5316\u63cf\u8ff0\u3002<\/h3>\n<p>\u5efa\u8bae\u5907\u4efdGPG\u7684\u516c\u94a5\u548c\u79c1\u94a5\uff0c\u5e76\u4f7f\u7528\u5b83\u4eec\u8fdb\u884c\u64cd\u4f5c\u662f\u4e00\u4e2a\u597d\u4e3b\u610f\u3002\u5982\u679c\u60a8\u5c1a\u672a\u521b\u5efa\uff0c\u8bf7\u9605\u8bfb\u5176\u4ed6\u6587\u7ae0\u8fdb\u884c\u521b\u5efa\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u5c06\u5047\u5b9a\u60a8\u5df2\u7ecf\u5907\u4efd\u597d\u4e86\u3002<\/p>\n<p>\u5bfc\u5165\u5907\u4efd\u7684\u5bc6\u94a5\u5e76\u8fdb\u884c\u786e\u8ba4\u3002<\/p>\n<pre class=\"post-pre\"><code>$ gpg --import gpg-private.keys.backup\r\n$ gpg --import gpg-public.keys.backup\r\n$ gpg --import-ownertrust ownertrust.backup\r\n$ gpg --list-secret-keys --keyid-format LONG\r\n<\/code><\/pre>\n<p>\u5c06GPG\u914d\u7f6e\u5230git\u4e2d\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git config --global user.signingkey &lt;Key ID&gt;\r\n$ git config --global commit.gpgsign true\r\n<\/code><\/pre>\n<h2>NeoBundle\u53ef\u4ee5\u6539\u5199\u6210\u300c\u65b0\u5305\u300d\u3002<\/h2>\n<p>\u6211\u6b63\u5728\u4f7f\u7528vim\u548c\u5b83\u7684\u63d2\u4ef6\u3002<br \/>\n\u5728\u83b7\u53d6dot\u6587\u4ef6\u65f6\uff0c\u6211\u6709\u4f7f\u7528\u5b83\u4eec\u7684\u8bbe\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code>$ curl https:\/\/raw.githubusercontent.com\/Shougo\/neobundle.vim\/master\/bin\/install.sh | sh\r\n$ vim .\r\n:NeoBundleInstall\r\n<\/code><\/pre>\n<h1>\u56fe\u5f62\u7528\u6237\u754c\u9762<\/h1>\n<p>\u6211\u4f1a\u8bbe\u7f6e\u4e00\u4e0b\u901a\u8fc7 brew \u5b89\u88c5\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u914d\u7f6e\u3002<\/p>\n<h2>\u4ee5\u4e0b\u662fAlfread\u7684\u542b\u4e49\uff1a<\/h2>\n<p>\u8fd9\u662f\u4e00\u4e2a\u542f\u52a8\u5668\u3002\u53ef\u4ee5\u901a\u8fc7\u8fde\u7eed\u70b9\u51fb\u4e24\u6b21alt\u952e\u6765\u542f\u52a8\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"alfred.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3bbd37434c4406c822de\/41-0.png\" alt=\"alfred.png\" \/><\/div>\n<h2>\u66f4\u597d\u7684\u89e6\u63a7\u5de5\u5177 de<\/h2>\n<p>\u5c06Android Studio\u8bbe\u7f6e\u4e3a\u53ef\u4ee5\u901a\u8fc7\u6ed1\u52a8\u6765\u5b9e\u73b0\u201c\u524d\u8fdb\/\u540e\u9000\u201d\uff0c\u5c31\u50cfXcode\u4e00\u6837\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2018-09-28 23.43.48.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3bbd37434c4406c822de\/44-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2018-09-28 23.43.48.png\" \/><\/div>\n<h2>Iterm2<\/h2>\n<p>\u4f7f\u7528Preference\u8fdb\u884c\u8bbe\u7f6e\u3002<\/p>\n<p>\u5c06\u80cc\u666f\u53d8\u4e3a\u900f\u660e\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"env-iterm2-1.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3bbd37434c4406c822de\/48-0.png\" alt=\"env-iterm2-1.png\" \/><\/div>\n<p>\u4e3a\u786e\u4fdd\u5b57\u4f53\u4e0d\u53d8\u5f62\u5e76\u4fdd\u6301\u65e5\u8bed\u6b63\u5e38\u663e\u793a\uff0c\u5c06\u8fdb\u884c\u5b57\u4f53\u653e\u5927\u5904\u7406\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"env-iterm2-2.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3bbd37434c4406c822de\/50-0.png\" alt=\"env-iterm2-2.png\" \/><\/div>\n<h1>SDKMAN\uff01\uff08\u6211\u5927\u90e8\u5206\u65f6\u95f4\u90fd\u5728\u4f7f\u7528Java\u73af\u5883\uff09<\/h1>\n<p>\u8fc7\u53bb\uff0c\u6211\u4eec\u76f4\u63a5\u5b89\u88c5SDK\u548c\u76f8\u5173\u5de5\u5177\uff0c\u6216\u8005\u4f7f\u7528Homebrew\u3002<br \/>\n\u73b0\u5728\uff0c\u6211\u4eec\u4f7f\u7528SDKMAN\uff01<br \/>\n\u8fd9\u662f\u4e00\u4e2a\u6240\u8c13\u7684Java\u5305\u7ba1\u7406\u5668\uff0c\u7c7b\u4f3c\u4e8eRuby\u7684rbenv\u3002<br \/>\n\u7b80\u6d01\u6765\u8bf4\uff0c\u53ef\u4ee5\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">SDK\u3084\u30c4\u30fc\u30eb\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6c17\u697d\u306b\u5207\u308a\u66ff\u3048\u3089\u308c\u307e\u3059\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">gradle\u306a\u3069\u306e\u30c4\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u4efb\u305b\u3089\u308c\u307e\u3059\u3002<\/ul>\n<h2>\u5b89\u88c5<\/h2>\n<p>\u548c\u5b98\u65b9\u7f51\u7ad9\u4e00\u81f4\u3002<\/p>\n<p>\u5b89\u88c5SDKMAN!<\/p>\n<pre class=\"post-pre\"><code>$ curl -s \"https:\/\/get.sdkman.io\" | bash\r\n<\/code><\/pre>\n<p>\u53ea\u8981\u8c03\u7528\u4ee5\u4e0b\u7684bash_profile\u91cd\u5199\u5de5\u5177\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528SDKMAN\uff01\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code>$ source \"$HOME\/.sdkman\/bin\/sdkman-init.sh\"\r\n$ source ~\/.bash_profile\r\n<\/code><\/pre>\n<h1>\u5b89\u88c5Java\u53ca\u5176\u76f8\u5173\u5de5\u5177\u3002<\/h1>\n<p>\u4f60\u53ef\u4ee5\u5728\u4e0b\u9762\u627e\u5230\u53ef\u5b89\u88c5\u7684\u5de5\u5177\u3002<br \/>\n\u4e0d\u4ec5\u53ef\u4ee5\u5b89\u88c5Gradle\u548cMaven\uff0c\u8fd8\u53ef\u4ee5\u5b89\u88c5Scala\u3001sbt\u3001Kotlin\u3001Groovy\u4ee5\u53ca\u5404\u79cd\u6846\u67b6\uff08\u5982Spring Boot\u3001Vert.x\u7b49\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code>$ sdk list\r\n<\/code><\/pre>\n<h2>Java\u8f6f\u4ef6\u5f00\u53d1\u5de5\u5177\u5305<\/h2>\n<p>\u4f8b\u5982\uff0c\u5bf9\u4e8eJava SDK\u7684\u60c5\u51b5\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u6765\u786e\u8ba4\u53ef\u5b89\u88c5\u7684Java\u7248\u672c\u3002<\/p>\n<pre class=\"post-pre\"><code>$ sdk list java\r\n================================================================================\r\nAvailable Java Versions for macOS ARM 64bit\r\n================================================================================\r\n Vendor        | Use | Version      | Dist    | Status     | Identifier\r\n--------------------------------------------------------------------------------\r\n Zulu          |     | 17.0.2       | zulu    |            | 17.0.2-zulu\r\n               |     | 17.0.2.fx    | zulu    |            | 17.0.2.fx-zulu\r\n               |     | 11.0.14      | zulu    |            | 11.0.14-zulu\r\n               | &gt;&gt;&gt; | 8.0.322      | zulu    | installed  | 8.0.322-zulu\r\n<\/code><\/pre>\n<p>\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<pre class=\"post-pre\"><code>$ sdk install java 8.0.322-zulu\r\n<\/code><\/pre>\n<p>\u5982\u679c\u60a8\u5b89\u88c5\u4e86\u591a\u4e2a\u7248\u672c\u5e76\u4e14\u60f3\u8981\u5207\u6362\u7248\u672c\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\u3002<\/p>\n<pre class=\"post-pre\"><code>$ sdk default java 8.0.322-zulu\r\n<\/code><\/pre>\n<h2>Gradle\uff0cMaven<\/h2>\n<p>\u4e0d\u7ba1\u600e\u6837\uff0c\u8fd9\u4e2a\u6211\u5c06\u5176\u653e\u8fdb\u53bb\u3002<\/p>\n<pre class=\"post-pre\"><code>$ sdk install gradle 3.4.1\r\n$ sdk install maven 3.3.9\r\n<\/code><\/pre>\n<h1>Spring Boot\u5f00\u53d1\u73af\u5883<\/h1>\n<p>\u4f5c\u4e3a\u793a\u4f8b\uff0c\u9996\u5148\u6211\u4eec\u4f1a\u5728Kotlin\u4e2d\u642d\u5efaSpring Boot\u7684\u5f00\u53d1\u73af\u5883\u3002\u7136\u540e\u6211\u4eec\u4f1a\u642d\u5efaKotlin\u7684Android\u5f00\u53d1\u73af\u5883\u3002<\/p>\n<h1>\u521b\u610f\u96c6\u6210\u5f00\u53d1\u73af\u5883 (IDE)<\/h1>\n<p>\u4e3a\u4e86\u8003\u8651\u8fdb\u884cAndroid\u5f00\u53d1\uff0c\u6211\u4f1a\u4f7f\u7528IDE\u5de5\u5177 IntelliJ IDEA\u3002<\/p>\n<p>\u53ef\u4ee5\u9009\u62e9\u5728Homebrew\u4e0a\u5b89\u88c5\uff0c\u4f46\u6700\u7ec8\u8fd8\u662f\u901a\u8fc7IDE\u7684\u66f4\u65b0\u529f\u80fd\u8fdb\u884c\u66f4\u65b0\uff0c\u901a\u5e38\u662f\u4eceJetBrains\u5b98\u7f51\u4e0b\u8f7d\/\u5b89\u88c5\u3002<\/p>\n<p>\u5bf9\u4e8e\u521d\u6b21\u5b89\u88c5\u540e\u7684\u8bbe\u7f6e\uff0c\u53ef\u4ee5\u6839\u636e\u4e2a\u4eba\u559c\u597d\u6765\u8fdb\u884c\uff0c\u4f46\u5c31\u6211\u4e2a\u4eba\u800c\u8a00\uff0c\u4ee5\u4e0b\u662f\u6211\u7684\u504f\u597d\u3002<\/p>\n<p>\u4fdd\u7559\u8fd9\u4e2a\u521b\u5efa\u542f\u52a8\u811a\u672c\u3002<\/p>\n<p>\u9ed8\u8ba4\u7684\u63d2\u4ef6\u662f<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Version Control\u306f\u3001git\u3068github\u3060\u3051\u306b\u3059\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Test\u306f\u3001TestNG\u3092\u89e3\u9664\u3059\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Swing\u306f\u3001Disable\u306b\u3059\u308b<\/ul>\n<p>\u4e3a\u4e86\u63d0\u4f9b\u66f4\u591a\u5e7f\u544a\u66dd\u5149\uff0cFeatured Plusings\u589e\u52a0\u4e86\u4e00\u4e9b\u989d\u5916\u7684\u529f\u80fd\u3002<\/p>\n<ul class=\"post-ul\">IdeaVim\u3092\u3044\u308c\u307e\u3059<\/ul>\n<p>\u987a\u4fbf\u63d0\u4e00\u4e0b\uff0c\u5378\u8f7d\u65b9\u6cd5\u662f\u8fd9\u6837\u7684\uff1a<br \/>\n\u5bf9\u4e8e IntelliJ IDEA 2016.3\uff0c\u8bf7\u70b9\u51fb\u8fd9\u91cc\u3002<br \/>\n\u5176\u4ed6\u7248\u672c\u4e5f\u53ef\u4ee5\u5728\u5b98\u65b9\u9875\u9762\u4e0a\u627e\u5230\u76f8\u540c\u7684\u65b9\u6cd5\u3002<\/p>\n<h1>\u9879\u76ee\u521b\u5efa<\/h1>\n<p>\u5982\u679c\u662fUltimate\u7248\u672c\uff0c\u7531\u4e8e\u5df2\u7ecf\u5185\u7f6e\u4e86Spring Initializr\u529f\u80fd\uff0c\u6240\u4ee5\u4f7f\u7528\u5b83\u4f3c\u4e4e\u662f\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002\uff08\u56e0\u4e3a\u6211\u6ca1\u6709\u4f7f\u7528\u8fc7Ultimate\u7248\u672c\uff0c\u6240\u4ee5\u4e0d\u592a\u6e05\u695a\uff09<br \/>\n\u4e0d\u8fc7\uff0c\u76f8\u5bf9\u4e8eSpring Initializr\uff0c\u4f7f\u7528Maven Archetype\u6765\u521b\u5efa\u53ef\u80fd\u66f4\u5bb9\u6613\u4e0a\u624b\uff0c\u6240\u4ee5\u6211\u4f1a\u9009\u62e9\u8fd9\u6837\u505a\u3002<\/p>\n<pre class=\"post-pre\"><code>$ mvn archetype:generate\r\n\u30fb\u30fb\u30fb\r\n2324: remote -&gt; org.springframework.boot:spring-boot-sample-actuator-archetype (Spring Boot Actuator Sample)\r\n2325: remote -&gt; org.springframework.boot:spring-boot-sample-actuator-log4j-archetype (Spring Boot Actuator Log4J Sample)\r\n2326: remote -&gt; org.springframework.boot:spring-boot-sample-actuator-noweb-archetype (Spring Boot Actuator Non-Web Sample)\r\n2327: remote -&gt; org.springframework.boot:spring-boot-sample-actuator-ui-archetype (Spring Boot Actuator UI Sample)\r\n2328: remote -&gt; org.springframework.boot:spring-boot-sample-amqp-archetype (Spring Boot AMQP Sample)\r\n2329: remote -&gt; org.springframework.boot:spring-boot-sample-aop-archetype (Spring Boot AOP Sample)\r\n2330: remote -&gt; org.springframework.boot:spring-boot-sample-batch-archetype (Spring Boot Batch Sample)\r\n2331: remote -&gt; org.springframework.boot:spring-boot-sample-data-jpa-archetype (Spring Boot Data JPA Sample)\r\n2332: remote -&gt; org.springframework.boot:spring-boot-sample-data-mongodb-archetype (Spring Boot Data MongoDB Sample)\r\n2333: remote -&gt; org.springframework.boot:spring-boot-sample-data-redis-archetype (Spring Boot Data Redis Sample)\r\n2334: remote -&gt; org.springframework.boot:spring-boot-sample-data-rest-archetype (Spring Boot Data REST Sample)\r\n2335: remote -&gt; org.springframework.boot:spring-boot-sample-integration-archetype (Spring Boot Integration Sample)\r\n2336: remote -&gt; org.springframework.boot:spring-boot-sample-jetty-archetype (Spring Boot Jetty Sample)\r\n2337: remote -&gt; org.springframework.boot:spring-boot-sample-profile-archetype (Spring Boot Profile Sample)\r\n2338: remote -&gt; org.springframework.boot:spring-boot-sample-secure-archetype (Spring Boot Security Sample)\r\n2339: remote -&gt; org.springframework.boot:spring-boot-sample-servlet-archetype (Spring Boot Servlet Sample)\r\n2340: remote -&gt; org.springframework.boot:spring-boot-sample-simple-archetype (Spring Boot Simple Sample)\r\n2341: remote -&gt; org.springframework.boot:spring-boot-sample-tomcat-archetype (Spring Boot Tomcat Sample)\r\n2342: remote -&gt; org.springframework.boot:spring-boot-sample-traditional-archetype (Spring Boot Traditional Sample)\r\n2343: remote -&gt; org.springframework.boot:spring-boot-sample-web-jsp-archetype (Spring Boot Web JSP Sample)\r\n2344: remote -&gt; org.springframework.boot:spring-boot-sample-web-method-security-archetype (Spring Boot Web Method Security Sample)\r\n2345: remote -&gt; org.springframework.boot:spring-boot-sample-web-secure-archetype (Spring Boot Web Secure Sample)\r\n2346: remote -&gt; org.springframework.boot:spring-boot-sample-web-static-archetype (Spring Boot Web Static Sample)\r\n2347: remote -&gt; org.springframework.boot:spring-boot-sample-web-ui-archetype (Spring Boot Web UI Sample)\r\n2348: remote -&gt; org.springframework.boot:spring-boot-sample-websocket-archetype (Spring Boot WebSocket Sample)\r\n2349: remote -&gt; org.springframework.boot:spring-boot-sample-xml-archetype (Spring Boot XML Sample)\r\n\u30fb\u30fb\u30fb\r\n<\/code><\/pre>\n<p>\u5728\u516c\u5f0f\u7684spring-boot\u4e2d\uff0c\u6709\u4e0a\u8ff0\u7684\u5185\u5bb9\u3002<br \/>\n\u8fd9\u6b21\u9009\u62e9\u4e861659\u7684Spring Boot Jetty\u793a\u4f8b\u3002<br \/>\n\u968f\u4fbf\u6307\u5b9a\u4e86\u4ee5\u4e0b\u5185\u5bb9\u3002<br \/>\ngroupId\u4e3ako2ic.spike<br \/>\nartifactId\u4e3aspike-spring-boot-sample-jetty<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u57fa\u672c\u4e0a\u662f\u7ed9\u81ea\u5df1\u4f7f\u7528\u7684\u3002\u53ef\u80fd\u5bf9\u4ed6\u4eba\u4e5f\u6709\u53c2\u8003\u4ef7\u503c\u3002 \u8fd9\u662f\u5728\u8fdb\u884c\u5168\u65b0\u5b89\u88c5\u65f6\u5fc5\u987b\u8981\u505a\u7684\u4e8b\u60c5\u3002 \u6700\u5f00\u59cb\u9700\u8981\u7684\u4e1c\u897f \u4f18\u5316\u952e [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-39660","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>Mac\u7684\u73af\u5883\u8bbe\u7f6e - 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\/mac\u7684\u73af\u5883\u8bbe\u7f6e\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mac\u7684\u73af\u5883\u8bbe\u7f6e\" \/>\n<meta property=\"og:description\" content=\"\u57fa\u672c\u4e0a\u662f\u7ed9\u81ea\u5df1\u4f7f\u7528\u7684\u3002\u53ef\u80fd\u5bf9\u4ed6\u4eba\u4e5f\u6709\u53c2\u8003\u4ef7\u503c\u3002 \u8fd9\u662f\u5728\u8fdb\u884c\u5168\u65b0\u5b89\u88c5\u65f6\u5fc5\u987b\u8981\u505a\u7684\u4e8b\u60c5\u3002 \u6700\u5f00\u59cb\u9700\u8981\u7684\u4e1c\u897f \u4f18\u5316\u952e [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/mac\u7684\u73af\u5883\u8bbe\u7f6e\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-19T07:11:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T12:51:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3bbd37434c4406c822de\/41-0.png\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \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\/mac%e7%9a%84%e7%8e%af%e5%a2%83%e8%ae%be%e7%bd%ae\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/mac%e7%9a%84%e7%8e%af%e5%a2%83%e8%ae%be%e7%bd%ae\/\",\"name\":\"Mac\u7684\u73af\u5883\u8bbe\u7f6e - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-01-19T07:11:46+00:00\",\"dateModified\":\"2024-04-29T12:51:30+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/mac%e7%9a%84%e7%8e%af%e5%a2%83%e8%ae%be%e7%bd%ae\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/mac%e7%9a%84%e7%8e%af%e5%a2%83%e8%ae%be%e7%bd%ae\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/mac%e7%9a%84%e7%8e%af%e5%a2%83%e8%ae%be%e7%bd%ae\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mac\u7684\u73af\u5883\u8bbe\u7f6e\"}]},{\"@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\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/mac%e7%9a%84%e7%8e%af%e5%a2%83%e8%ae%be%e7%bd%ae\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Mac\u7684\u73af\u5883\u8bbe\u7f6e - 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\/mac\u7684\u73af\u5883\u8bbe\u7f6e\/","og_locale":"zh_CN","og_type":"article","og_title":"Mac\u7684\u73af\u5883\u8bbe\u7f6e","og_description":"\u57fa\u672c\u4e0a\u662f\u7ed9\u81ea\u5df1\u4f7f\u7528\u7684\u3002\u53ef\u80fd\u5bf9\u4ed6\u4eba\u4e5f\u6709\u53c2\u8003\u4ef7\u503c\u3002 \u8fd9\u662f\u5728\u8fdb\u884c\u5168\u65b0\u5b89\u88c5\u65f6\u5fc5\u987b\u8981\u505a\u7684\u4e8b\u60c5\u3002 \u6700\u5f00\u59cb\u9700\u8981\u7684\u4e1c\u897f \u4f18\u5316\u952e [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/mac\u7684\u73af\u5883\u8bbe\u7f6e\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-01-19T07:11:46+00:00","article_modified_time":"2024-04-29T12:51:30+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d3bbd37434c4406c822de\/41-0.png"}],"author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/mac%e7%9a%84%e7%8e%af%e5%a2%83%e8%ae%be%e7%bd%ae\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/mac%e7%9a%84%e7%8e%af%e5%a2%83%e8%ae%be%e7%bd%ae\/","name":"Mac\u7684\u73af\u5883\u8bbe\u7f6e - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-01-19T07:11:46+00:00","dateModified":"2024-04-29T12:51:30+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/mac%e7%9a%84%e7%8e%af%e5%a2%83%e8%ae%be%e7%bd%ae\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/mac%e7%9a%84%e7%8e%af%e5%a2%83%e8%ae%be%e7%bd%ae\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/mac%e7%9a%84%e7%8e%af%e5%a2%83%e8%ae%be%e7%bd%ae\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Mac\u7684\u73af\u5883\u8bbe\u7f6e"}]},{"@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\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/mac%e7%9a%84%e7%8e%af%e5%a2%83%e8%ae%be%e7%bd%ae\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39660","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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=39660"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39660\/revisions"}],"predecessor-version":[{"id":87575,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39660\/revisions\/87575"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=39660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=39660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=39660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}