{"id":39790,"date":"2023-12-20T13:01:15","date_gmt":"2023-01-25T11:27:56","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%88%e5%be%9espring-boot%e9%96%8b%e5%a7%8b%ef%bc%8c%e5%85%88%e5%af%ab%e5%87%ba%e4%b8%80%e5%80%8b%e9%81%8b%e4%bd%9c%e7%9a%84%e7%89%88%e6%9c%ac%e3%80%82\/"},"modified":"2024-05-04T14:27:13","modified_gmt":"2024-05-04T06:27:13","slug":"%e5%85%88%e5%be%9espring-boot%e9%96%8b%e5%a7%8b%ef%bc%8c%e5%85%88%e5%af%ab%e5%87%ba%e4%b8%80%e5%80%8b%e9%81%8b%e4%bd%9c%e7%9a%84%e7%89%88%e6%9c%ac%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%88%e5%be%9espring-boot%e9%96%8b%e5%a7%8b%ef%bc%8c%e5%85%88%e5%af%ab%e5%87%ba%e4%b8%80%e5%80%8b%e9%81%8b%e4%bd%9c%e7%9a%84%e7%89%88%e6%9c%ac%e3%80%82\/","title":{"rendered":"\u5148\u5f9eSpring Boot\u958b\u59cb\uff0c\u5148\u5beb\u51fa\u4e00\u500b\u904b\u4f5c\u7684\u7248\u672c"},"content":{"rendered":"<h3>\u6dfb\u52a0\u5907\u6ce8<\/h3>\n<p>\u6839\u636ekazuki43zoo\u5148\u751f\u7684\u8bc4\u8bba\uff0c\u4f7f\u7528\u65b0\u7248\u672c\u7684Spring Boot\uff081.3.3.RELEASE\uff09\u548cSPRING INITIALIZR\uff0c\u4f3c\u4e4e\u53ef\u4ee5\u8f7b\u677e\u521b\u5efa\u4e00\u4e2a\u53ef\u4ee5\u8fd0\u884c\u7684\u9879\u76ee\uff0c\u800c\u65e0\u9700\u62c5\u5fc3\u672c\u6587\u6240\u63d0\u5230\u7684\u7e41\u7410\u95ee\u9898\u3002<\/p>\n<h2><\/h2>\n<p>\u8bf7\u539f\u8c05\u6211\uff0c\u6211\u65e0\u610f\u5192\u72af\u4f60\u3002\u6211\u771f\u5fc3\u5e0c\u671b\u6211\u4eec\u53ef\u4ee5\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u91cd\u5efa\u6211\u4eec\u4e4b\u95f4\u7684\u53cb\u8c0a\u3002\u5982\u679c\u4f60\u613f\u610f\uff0c\u6211\u613f\u610f\u9053\u6b49\u5e76\u52aa\u529b\u6539\u6b63\u6211\u7684\u9519\u8bef\u3002<\/p>\n<p>\u4ee5\u5176\u8457\u540d\u7684Java\u6846\u67b6\u4e4b\u4e00Spring\u4e3a\u4f8b\uff0c\u5176\u4e2d\u7684Spring Boot\u53ef\u5feb\u901f\u521b\u5efaWeb\u5e94\u7528\u7a0b\u5e8f\u3002<br \/>\n\u7531\u4e8e\u5176\u5e7f\u6cdb\u4f7f\u7528\uff0c\u641c\u7d22\u4e00\u4e0b\u5c31\u53ef\u4ee5\u627e\u5230\u5404\u79cd\u5404\u6837\u7684\u4fe1\u606f\uff0c\u4f46\u5bf9\u4e8e\u50cf\u6211\u8fd9\u6837\u6280\u672f\u4e0d\u592a\u597d\u7684\u5de5\u7a0b\u5e08\u6765\u8bf4\uff0c\u5373\u4f7f\u88ab\u8bf4\u6210\u7b80\u5355\uff0c\u4e5f\u5f88\u96be\u505a\u5230\u3002<br \/>\n\u56e0\u6b64\uff0c\u5728\u8003\u8651\u5230\u6211\u9047\u5230\u7684\u95ee\u9898\u7684\u57fa\u7840\u4e0a\uff0c\u6211\u5c06\u63d0\u4f9b\u521b\u5efa\u4e00\u4e2a\u57fa\u672c\u8fd0\u884c\u7684\u5e94\u7528\u7a0b\u5e8f\u6240\u9700\u7684\u4fe1\u606f\u3002<br \/>\n\u8fd0\u884c\u4e2d\u7684\u6e90\u4ee3\u7801\u53ef\u4ee5\u5728\u6b64\u94fe\u63a5\u627e\u5230\uff1ahttps:\/\/github.com\/heiwa\/spring-boot-template<\/p>\n<h1>\u5f00\u53d1\u73af\u5883<\/h1>\n<p>\u6211\u5c06\u7528Maven\u548cSpring Boot\u8fdb\u884c\u5f00\u53d1\u3002<br \/>\n* Spring\u7248\u672c\uff1a1.0.2-RELEASE<br \/>\n* Maven\u7248\u672c\uff1a3.3.3<br \/>\n\u5c3d\u7ba1\u6211\u4f7f\u7528\u7684\u662fMac\uff0c\u4f46\u6211\u8ba4\u4e3a\u73af\u5883\u5dee\u5f02\u5e94\u8be5\u5f88\u5c0f\u3002<\/p>\n<h1>\u6587\u4ef6\u76ee\u5f55\u7ed3\u6784<\/h1>\n<pre class=\"post-pre\"><code>SampleApp\r\n  \u251c src\r\n    \u251c main\r\n      \u251c java\r\n        \u2514 heiwa.spring.sample\r\n          \u251c controller\r\n            \u2514 SampleController.java\r\n          \u2514 App.java\r\n      \u2514 resources\r\n        \u2514 templates\r\n          \u2514 hello.html\r\n    \u2514 test  \/\/\u7701\u7565\r\n  \u2514 pom.xml\r\n<\/code><\/pre>\n<p>\u5728App.java\u4e2d\uff0c\u6709\u4e00\u4e2a\u4e3b\u8981\u7684\u65b9\u6cd5\uff0c\u5b83\u662f\u4e00\u4e2a\u4f7f\u7528Spring Boot\u542f\u52a8\u7684Web\u5e94\u7528\u7a0b\u5e8f\u7684\u542f\u52a8\u7c7b\u3002<br \/>\nSampleController\u662f\u4e00\u4e2a\u63a7\u5236\u5668\uff0c\u5b83\u8fd4\u56de\u4e00\u4e2a\u4ee5hello.html\u4e3a\u6a21\u677f\u7684\u9875\u9762\u3002<\/p>\n<h1>pom\u7684\u914d\u7f6e<\/h1>\n<p>\u9996\u5148\uff0c\u9700\u8981\u5728\u4e2d\u6587\u4e2d\u63cf\u8ff0\u4f7f\u7528Spring Boot\u7684\u54ea\u4e2a\u7248\u672c\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;parent&gt;\r\n  &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\r\n  &lt;artifactId&gt;spring-boot-starter-parent&lt;\/artifactId&gt;\r\n  &lt;version&gt;1.0.2.RELEASE&lt;\/version&gt;\r\n&lt;\/parent&gt;\r\n<\/code><\/pre>\n<p>\u6dfb\u52a0\u4e00\u4e0b\u4f9d\u5b58\u5173\u7cfb\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;dependency&gt;\r\n  &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\r\n  &lt;artifactId&gt;spring-boot-starter-web&lt;\/artifactId&gt;\r\n&lt;\/dependency&gt;\r\n&lt;dependency&gt;\r\n  &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\r\n  &lt;artifactId&gt;spring-boot-starter-thymeleaf&lt;\/artifactId&gt;\r\n&lt;\/dependency&gt;\r\n<\/code><\/pre>\n<p>\u4e0a\u8ff0\u662f\u4f7f\u7528Spring Boot\u6240\u9700\u7684\u5fc5\u8981\u4f9d\u8d56\uff0c\u800c\u4e0b\u8ff0\u5219\u662f\u5728\u4f7f\u7528thymeleaf\u4f5c\u4e3a\u6a21\u677f\u65f6\u6240\u9700\u7684\u4f9d\u8d56\u3002<br \/>\n\u867d\u7136\u53ef\u4ee5\u4f7f\u7528jsp\u7b49\u6a21\u677f\uff0c\u4f46\u662fSpring\u63a8\u8350\u4f7f\u7528thymeleaf\u7b49\u7c7b\u4f3c\u7684\u6a21\u677f\uff0c\u6240\u4ee5\u6211\u4eec\u4f1a\u4f7f\u7528thymeleaf\u3002\u8fdb\u5165\u4ed6\u4eba\u7684\u5730\u65b9\uff0c\u5c31\u8981\u9075\u5faa\u5f53\u5730\u7684\u89c4\u77e9\u3002<\/p>\n<h1>\u521b\u5efa\u4e00\u4e2a\u542f\u52a8\u7c7b<\/h1>\n<p>\u6211\u8981\u521b\u5efa\u4e00\u4e2aApp.java\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code>@Controller\r\n@ComponentScan\r\n@EnableAutoConfiguration\r\npublic class App {\r\n\r\n    @RequestMapping(\"\/\")\r\n    @ResponseBody\r\n    public String home() {\r\n        return \"Hello, Spring Boot!\";\r\n    }\r\n\r\n    public static void main(String[] args) {\r\n        SpringApplication.run(App.class, args);\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>\u8bf7\u5c06import\u5904\u7406\u597d\u3002\u7531\u4e8e\u6dfb\u52a0@EnableAutoConfiguration\uff0c\u56e0\u6b64Spring Boot\u4f1a\u5e2e\u6211\u4eec\u5904\u7406\u5f88\u591a\u4e8b\u60c5\uff0c\u6240\u4ee5\u6211\u4eec\u8981\u6dfb\u52a0\u5b83\u3002\u7136\u540e\uff0c\u5728main\u65b9\u6cd5\u4e2d\u8c03\u7528SpringApplication.run\uff0c\u5c31\u53ef\u4ee5\u542f\u52a8Spring Boot\u7684Web\u5e94\u7528\u3002\u5f88\u7b80\u5355\u5427\uff01<\/p>\n<p>\u901a\u8fc7\u52a0\u4e0a @Controller \u6ce8\u89e3\uff0c\u8868\u660e\u8be5\u7c7b\u662f\u4e00\u4e2a\u63a7\u5236\u5668\u7c7b\u3002\u7136\u540e\uff0c\u5bf9\u4e8e\u4efb\u610f\u7684\u65b9\u6cd5\uff0c\u52a0\u4e0a @RequestMapping \u6ce8\u89e3\uff0c\u5b83\u5c06\u5e2e\u6211\u4eec\u5c06\u8be5\u65b9\u6cd5\u4e0e\u6307\u5b9a\u7684URL\u8fdb\u884c\u6620\u5c04\u3002\u5728\u4e0a\u8ff0\u60c5\u51b5\u4e2d\uff0c\u5f53\u8fde\u63a5\u5230 localhost:8080\/ \u65f6\uff0c\u5c06\u8c03\u7528home\u65b9\u6cd5\u3002\u5728home\u65b9\u6cd5\u4e0a\u52a0\u4e0a@ResponseBody\u6ce8\u89e3\uff0c\u5c06\u8fd4\u56de\u7684\u5b57\u7b26\u4e32\u4f5c\u4e3a\u54cd\u5e94\u4f53\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\u3002<\/p>\n<p>\u73b0\u5728\uff0c\u6211\u4eec\u81f3\u5c11\u5f97\u5230\u4e86\u4e00\u4e2a\u80fd\u591f\u56de\u5e94\u7684\u4e1c\u897f\uff01\u8ba9\u6211\u4eec\u6765\u8bd5\u4e00\u8bd5\u5427\uff01<\/p>\n<h1>\u5f00\u52a8<\/h1>\n<p>\u5728\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u8fd0\u884cmaven\u547d\u4ee4\u3002<br \/>\nmvn clean package spring-boot:run<br \/>\n\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95eehttp:\/\/localhost:8080\/\uff0c\u4f1a\u8fd4\u56de&#8221;Hello, Spring Boot!&#8221;\u3002<\/p>\n<h1>\u6dfb\u52a0\u63a7\u5236\u5668<\/h1>\n<p>\u9996\u5148\uff0c\u5728App.java\u6587\u4ef6\u4e2d\u6dfb\u52a0\u6ca1\u6709\u5728\u4e0a\u9762\u89e3\u91ca\u7684@ComponentScan\u6ce8\u89e3\u3002\u8fd9\u6837\uff0c\u5b83\u5c06\u626b\u63cf\u8be5\u5305\u53ca\u5176\u4ee5\u4e0b\u7684\u7c7b\uff0c\u5e76\u6dfb\u52a0\u7ec4\u4ef6\u3002\u8fd9\u5bf9\u4e8e\u6dfb\u52a0\u521b\u5efa\u7684\u63a7\u5236\u5668\u7c7b\u662f\u5fc5\u8981\u7684\u3002<\/p>\n<pre class=\"post-pre\"><code>@Controller\r\npublic class SampleController {\r\n\r\n    @RequestMapping(\"hello\")\r\n    public String hello(Model model) {\r\n        model.addAttribute(\"hello\", \"Hello, spring\");\r\n        return \"hello\";\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>\u5728\u521a\u624d\u521b\u5efa\u7684\u7c7b\u4e2d\uff0c\u540c\u6837\u6dfb\u52a0 @Controller \u6ce8\u89e3\u3002\u8fd9\u6837\u4e00\u6765\uff0c\u5b83\u5c31\u4f1a\u5c06\u8be5\u7c7b\u6dfb\u52a0\u4e3a\u4e00\u4e2a\u63a7\u5236\u5668\u3002\u7136\u540e\uff0c\u901a\u8fc7 @RequestMapping \u6ce8\u89e3\u6765\u6307\u5b9a\u6620\u5c04\u3002<\/p>\n<h1>\u4f7f\u7528\u6a21\u677f\u4f5c\u51fa\u56de\u5e94<\/h1>\n<p>\u8fd9\u6b21\u4f1a\u8fd4\u56de\u4f7f\u7528\u6a21\u677f\u7684\u54cd\u5e94\u3002<br \/>\n\u5728\u63a7\u5236\u5668\u7684\u65b9\u6cd5\u4e2d\uff0c\u4ee5Model\u7c7b\u7684\u53c2\u6570\u4e3a\u5165\u53e3\uff0c\u5c06\u5fc5\u8981\u7684\u6a21\u677f\u4fe1\u606f\u6dfb\u52a0\u5230\u5176\u4e2d\u3002<br \/>\n\u8fd4\u56de\u503c\u5c06\u8fd4\u56de\u6a21\u677f\u6587\u4ef6\u7684\u8def\u5f84\u3002\u4f8b\u5982\uff0c\u5728\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u8fd4\u56de\u7684\u662fhello\uff0c\u56e0\u6b64\u6307\u5b9a\u7684\u662fresources\/templates\/hello.html\u3002<br \/>\n\uff08\u6a21\u677f\u7684\u9ed8\u8ba4\u5b58\u653e\u4f4d\u7f6e\u5728templates\u4e0b\u9762\u3002\uff09<\/p>\n<pre class=\"post-pre\"><code>&lt;!-- hello.html --&gt;\r\n&lt;html xmlns:th=\"http:\/\/www.thymeleaf.org\"&gt;\r\n&lt;head&gt;\r\n    &lt;meta charset=\"UTF-8\" \/&gt;\r\n    &lt;title&gt;page title&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n    &lt;span th:text=\"${hello + ' world'}\"&gt;&lt;\/span&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p>\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5728\u6700\u5f00\u59cb\u7684\u4e2d\u58f0\u660e\u4f7f\u7528thymeleaf\u6807\u7b7e\uff0c\u5e76\u4e14\u50cf\u8fd9\u6837\u4f7f\u7528\u3002<\/p>\n<p>\u4f7f\u7528\u8fd9\u4e2a\uff0c\u53ef\u4ee5\u8fd4\u56de\u4f7f\u7528\u6a21\u677f\u7684\u54cd\u5e94\u3002<\/p>\n<h1>\u603b\u7ed3<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30af\u30e9\u30b9\u306b\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u3066\u3044\u304f\u3060\u3051\u3067\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u304c\u4f5c\u6210\u3067\u304d\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\">\u30c7\u30d5\u30a9\u30eb\u30c8\u306b\u6c17\u3092\u3064\u3051\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>main\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308b\u30af\u30e9\u30b9\u306f\u4e00\u3064\u306b\u3059\u308b\uff08\u8907\u6570\u3042\u308b\u5834\u5408\u306f\u6307\u5b9a\u304c\u5fc5\u8981\uff09<br \/>\n\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u914d\u7f6e\u5834\u6240\u306ftemplates\u4ee5\u4e0b<br \/>\n\u8d77\u52d5\u30af\u30e9\u30b9\u3057\u304b\u898b\u306a\u3044\uff08\u5fc5\u8981\u306a\u3089@ComponentScan \u3092\u4ed8\u3051\u308b)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6dfb\u52a0\u5907\u6ce8 \u6839\u636ekazuki43zoo\u5148\u751f\u7684\u8bc4\u8bba\uff0c\u4f7f\u7528\u65b0\u7248\u672c\u7684Spring Boot\uff081.3.3.RELEASE [&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-39790","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>\u5148\u5f9eSpring Boot\u958b\u59cb\uff0c\u5148\u5beb\u51fa\u4e00\u500b\u904b\u4f5c\u7684\u7248\u672c - 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\/\u5148\u5f9espring-boot\u958b\u59cb\uff0c\u5148\u5beb\u51fa\u4e00\u500b\u904b\u4f5c\u7684\u7248\u672c\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5148\u5f9eSpring Boot\u958b\u59cb\uff0c\u5148\u5beb\u51fa\u4e00\u500b\u904b\u4f5c\u7684\u7248\u672c\" \/>\n<meta property=\"og:description\" content=\"\u6dfb\u52a0\u5907\u6ce8 \u6839\u636ekazuki43zoo\u5148\u751f\u7684\u8bc4\u8bba\uff0c\u4f7f\u7528\u65b0\u7248\u672c\u7684Spring Boot\uff081.3.3.RELEASE [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5148\u5f9espring-boot\u958b\u59cb\uff0c\u5148\u5beb\u51fa\u4e00\u500b\u904b\u4f5c\u7684\u7248\u672c\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-25T11:27:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T06:27:13+00:00\" \/>\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=\"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\/%e5%85%88%e5%be%9espring-boot%e9%96%8b%e5%a7%8b%ef%bc%8c%e5%85%88%e5%af%ab%e5%87%ba%e4%b8%80%e5%80%8b%e9%81%8b%e4%bd%9c%e7%9a%84%e7%89%88%e6%9c%ac%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%88%e5%be%9espring-boot%e9%96%8b%e5%a7%8b%ef%bc%8c%e5%85%88%e5%af%ab%e5%87%ba%e4%b8%80%e5%80%8b%e9%81%8b%e4%bd%9c%e7%9a%84%e7%89%88%e6%9c%ac%e3%80%82\/\",\"name\":\"\u5148\u5f9eSpring Boot\u958b\u59cb\uff0c\u5148\u5beb\u51fa\u4e00\u500b\u904b\u4f5c\u7684\u7248\u672c - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-01-25T11:27:56+00:00\",\"dateModified\":\"2024-05-04T06:27:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%88%e5%be%9espring-boot%e9%96%8b%e5%a7%8b%ef%bc%8c%e5%85%88%e5%af%ab%e5%87%ba%e4%b8%80%e5%80%8b%e9%81%8b%e4%bd%9c%e7%9a%84%e7%89%88%e6%9c%ac%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%88%e5%be%9espring-boot%e9%96%8b%e5%a7%8b%ef%bc%8c%e5%85%88%e5%af%ab%e5%87%ba%e4%b8%80%e5%80%8b%e9%81%8b%e4%bd%9c%e7%9a%84%e7%89%88%e6%9c%ac%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%88%e5%be%9espring-boot%e9%96%8b%e5%a7%8b%ef%bc%8c%e5%85%88%e5%af%ab%e5%87%ba%e4%b8%80%e5%80%8b%e9%81%8b%e4%bd%9c%e7%9a%84%e7%89%88%e6%9c%ac%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5148\u5f9eSpring Boot\u958b\u59cb\uff0c\u5148\u5beb\u51fa\u4e00\u500b\u904b\u4f5c\u7684\u7248\u672c\"}]},{\"@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\/%e5%85%88%e5%be%9espring-boot%e9%96%8b%e5%a7%8b%ef%bc%8c%e5%85%88%e5%af%ab%e5%87%ba%e4%b8%80%e5%80%8b%e9%81%8b%e4%bd%9c%e7%9a%84%e7%89%88%e6%9c%ac%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5148\u5f9eSpring Boot\u958b\u59cb\uff0c\u5148\u5beb\u51fa\u4e00\u500b\u904b\u4f5c\u7684\u7248\u672c - 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\/\u5148\u5f9espring-boot\u958b\u59cb\uff0c\u5148\u5beb\u51fa\u4e00\u500b\u904b\u4f5c\u7684\u7248\u672c\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5148\u5f9eSpring Boot\u958b\u59cb\uff0c\u5148\u5beb\u51fa\u4e00\u500b\u904b\u4f5c\u7684\u7248\u672c","og_description":"\u6dfb\u52a0\u5907\u6ce8 \u6839\u636ekazuki43zoo\u5148\u751f\u7684\u8bc4\u8bba\uff0c\u4f7f\u7528\u65b0\u7248\u672c\u7684Spring Boot\uff081.3.3.RELEASE [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5148\u5f9espring-boot\u958b\u59cb\uff0c\u5148\u5beb\u51fa\u4e00\u500b\u904b\u4f5c\u7684\u7248\u672c\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-01-25T11:27:56+00:00","article_modified_time":"2024-05-04T06:27:13+00:00","author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%88%e5%be%9espring-boot%e9%96%8b%e5%a7%8b%ef%bc%8c%e5%85%88%e5%af%ab%e5%87%ba%e4%b8%80%e5%80%8b%e9%81%8b%e4%bd%9c%e7%9a%84%e7%89%88%e6%9c%ac%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%88%e5%be%9espring-boot%e9%96%8b%e5%a7%8b%ef%bc%8c%e5%85%88%e5%af%ab%e5%87%ba%e4%b8%80%e5%80%8b%e9%81%8b%e4%bd%9c%e7%9a%84%e7%89%88%e6%9c%ac%e3%80%82\/","name":"\u5148\u5f9eSpring Boot\u958b\u59cb\uff0c\u5148\u5beb\u51fa\u4e00\u500b\u904b\u4f5c\u7684\u7248\u672c - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-01-25T11:27:56+00:00","dateModified":"2024-05-04T06:27:13+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%88%e5%be%9espring-boot%e9%96%8b%e5%a7%8b%ef%bc%8c%e5%85%88%e5%af%ab%e5%87%ba%e4%b8%80%e5%80%8b%e9%81%8b%e4%bd%9c%e7%9a%84%e7%89%88%e6%9c%ac%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%88%e5%be%9espring-boot%e9%96%8b%e5%a7%8b%ef%bc%8c%e5%85%88%e5%af%ab%e5%87%ba%e4%b8%80%e5%80%8b%e9%81%8b%e4%bd%9c%e7%9a%84%e7%89%88%e6%9c%ac%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%85%88%e5%be%9espring-boot%e9%96%8b%e5%a7%8b%ef%bc%8c%e5%85%88%e5%af%ab%e5%87%ba%e4%b8%80%e5%80%8b%e9%81%8b%e4%bd%9c%e7%9a%84%e7%89%88%e6%9c%ac%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5148\u5f9eSpring Boot\u958b\u59cb\uff0c\u5148\u5beb\u51fa\u4e00\u500b\u904b\u4f5c\u7684\u7248\u672c"}]},{"@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\/%e5%85%88%e5%be%9espring-boot%e9%96%8b%e5%a7%8b%ef%bc%8c%e5%85%88%e5%af%ab%e5%87%ba%e4%b8%80%e5%80%8b%e9%81%8b%e4%bd%9c%e7%9a%84%e7%89%88%e6%9c%ac%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39790","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=39790"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39790\/revisions"}],"predecessor-version":[{"id":98868,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39790\/revisions\/98868"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=39790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=39790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=39790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}