{"id":155,"date":"2021-04-26T20:35:25","date_gmt":"2021-04-26T12:35:25","guid":{"rendered":"http:\/\/112.124.66.68\/?p=155"},"modified":"2021-04-26T20:35:25","modified_gmt":"2021-04-26T12:35:25","slug":"%e4%bb%80%e4%b9%88%e6%98%afspringboot%ef%bc%9f%e4%b8%ba%e4%bb%80%e4%b9%88%e8%a6%81%e7%94%a8springboot%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/sanlangcode.com\/index.php\/2021\/04\/26\/%e4%bb%80%e4%b9%88%e6%98%afspringboot%ef%bc%9f%e4%b8%ba%e4%bb%80%e4%b9%88%e8%a6%81%e7%94%a8springboot%ef%bc%9f\/","title":{"rendered":"\u4ec0\u4e48\u662fSpringBoot\uff1f\u4e3a\u4ec0\u4e48\u8981\u7528SpringBoot\uff1f"},"content":{"rendered":"\n<p> <br>\u5b83\u7528\u6765\u7b80\u5316spring\u5e94\u7528\u7684\u521d\u59cb\u642d\u5efa\u4ee5\u53ca\u5f00\u53d1\u8fc7\u7a0b \u4f7f\u7528\u7279\u5b9a\u7684\u65b9\u5f0f\u6765\u8fdb\u884c\u914d\u7f6e\uff08properties\u6216yml\u6587\u4ef6\uff09<br>\u521b\u5efa\u72ec\u7acb\u7684spring\u5f15\u7528\u7a0b\u5e8f main\u65b9\u6cd5\u8fd0\u884c<br><span class=\"has-inline-color has-luminous-vivid-orange-color\">\u5d4c\u5165\u7684Tomcat \u65e0\u9700\u90e8\u7f72war\u6587\u4ef6<\/span><br><span class=\"has-inline-color has-luminous-vivid-orange-color\">\u7b80\u5316maven\u914d\u7f6e<\/span><br>\u81ea\u52a8\u914d\u7f6espring\u6dfb\u52a0\u5bf9\u5e94\u529f\u80fdstarter\u81ea\u52a8\u5316\u914d\u7f6e<br>spring boot\u6765\u7b80\u5316spring\u5e94\u7528\u5f00\u53d1\uff0c\u7ea6\u5b9a\u5927\u4e8e\u914d\u7f6e\uff0c\u53bb\u7e41\u4ece\u7b80\uff0cjust run\u5c31\u80fd\u521b\u5efa\u4e00\u4e2a\u72ec\u7acb\u7684\uff0c\u4ea7\u54c1<br>\u7ea7\u522b\u7684\u5e94\u7528<br>Spring Boot \u4f18\u70b9\u975e\u5e38\u591a\uff0c\u5982\uff1a<br><span class=\"has-inline-color has-luminous-vivid-orange-color\">\u4e00\u3001\u72ec\u7acb\u8fd0\u884c<\/span><br>Spring Boot\u800c\u4e14\u5185\u5d4c\u4e86\u5404\u79cdservlet\u5bb9\u5668\uff0cTomcat\u3001Jetty\u7b49\uff0c\u73b0\u5728\u4e0d\u518d\u9700\u8981\u6253\u6210war\u5305\u90e8\u7f72\u5230\u5bb9\u5668\u4e2d\uff0c<br>Spring Boot\u53ea\u8981\u6253\u6210\u4e00\u4e2a\u53ef\u6267\u884c\u7684jar\u5305\u5c31\u80fd\u72ec\u7acb\u8fd0\u884c\uff0c\u6240\u6709\u7684\u4f9d\u8d56\u5305\u90fd\u5728\u4e00\u4e2ajar\u5305\u5185\u3002<br><span class=\"has-inline-color has-luminous-vivid-orange-color\">\u4e8c\u3001\u7b80\u5316\u914d\u7f6e<\/span><br>spring-boot-starter-web\u542f\u52a8\u5668\u81ea\u52a8\u4f9d\u8d56\u5176\u4ed6\u7ec4\u4ef6\uff0c\u7b80\u5c11\u4e86maven\u7684\u914d\u7f6e\u3002<br><span class=\"has-inline-color has-luminous-vivid-orange-color\">\u4e09\u3001\u81ea\u52a8\u914d\u7f6e<\/span><br>Spring Boot\u80fd\u6839\u636e\u5f53\u524d\u7c7b\u8def\u5f84\u4e0b\u7684\u7c7b\u3001jar\u5305\u6765\u81ea\u52a8\u914d\u7f6ebean\uff0c\u5982\u6dfb\u52a0\u4e00\u4e2aspring-boot-starter-web\u542f<br>\u52a8\u5668\u5c31\u80fd\u62e5\u6709web\u7684\u529f\u80fd\uff0c\u65e0\u9700\u5176\u4ed6\u914d\u7f6e\u3002<br><span class=\"has-inline-color has-luminous-vivid-orange-color\">\u56db\u3001\u65e0\u4ee3\u7801\u751f\u6210\u548cXML\u914d\u7f6e<\/span><br>Spring Boot\u914d\u7f6e\u8fc7\u7a0b\u4e2d\u65e0\u4ee3\u7801\u751f\u6210\uff0c\u4e5f\u65e0\u9700XML\u914d\u7f6e\u6587\u4ef6\u5c31\u80fd\u5b8c\u6210\u6240\u6709\u914d\u7f6e\u5de5\u4f5c\uff0c\u8fd9\u4e00\u5207\u90fd\u662f\u501f\u52a9\u4e8e<br>\u6761\u4ef6\u6ce8\u89e3\u5b8c\u6210\u7684\uff0c\u8fd9\u4e5f\u662fSpring4.x\u7684\u6838\u5fc3\u529f\u80fd\u4e4b\u4e00\u3002<br>\u4e94\u3001\u5e94\u7528\u76d1\u63a7<br>Spring Boot\u63d0\u4f9b\u4e00\u7cfb\u5217\u7aef\u70b9\u53ef\u4ee5\u76d1\u63a7\u670d\u52a1\u53ca\u5e94\u7528\uff0c\u505a\u5065\u5eb7\u68c0\u6d4b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b83\u7528\u6765\u7b80\u5316spring\u5e94\u7528\u7684\u521d\u59cb&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-155","post","type-post","status-publish","format-standard","hentry","category-springboot"],"_links":{"self":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/comments?post=155"}],"version-history":[{"count":0,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/155\/revisions"}],"wp:attachment":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media?parent=155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/categories?post=155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/tags?post=155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}