{"id":8220,"date":"2023-11-28T20:19:12","date_gmt":"2023-11-28T12:19:12","guid":{"rendered":"https:\/\/wx.kaifamiao.info\/?p=8220"},"modified":"2023-12-06T10:10:30","modified_gmt":"2023-12-06T02:10:30","slug":"springboot-he-springmvc-de-qu-bie","status":"publish","type":"post","link":"http:\/\/wx.kaifamiao.info\/index.php\/2023\/11\/28\/springboot-he-springmvc-de-qu-bie\/","title":{"rendered":"SpringBoot \u548c SpringMVC \u7684\u533a\u522b\uff1f"},"content":{"rendered":"<p>Spring Boot \u548c Spring MVC \u662f Spring Framework \u7684\u4e24\u4e2a\u4e0d\u540c\u7684\u6982\u5ff5\uff0c\u5b83\u4eec\u89e3\u51b3\u4e86\u4e0d\u540c\u7684\u95ee\u9898\uff0c\u5e76\u4e14\u53ef\u4ee5\u540c\u65f6\u5728\u4e00\u4e2a\u9879\u76ee\u4e2d\u4f7f\u7528\u3002<\/p>\n<ol>\n<li>\n<strong>Spring Boot\uff1a<\/strong><\/p>\n<ul>\n<li><strong>\u7528\u9014\uff1a<\/strong> Spring Boot\u662f\u4e00\u4e2a\u7528\u4e8e\u7b80\u5316\u548c\u5feb\u901f\u642d\u5efa\u57fa\u4e8eSpring\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u6846\u67b6\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u7ea6\u5b9a\u5927\u4e8e\u914d\u7f6e\u7684\u65b9\u5f0f\uff0c\u901a\u8fc7\u81ea\u52a8\u914d\u7f6e\u548cStarter\u4f9d\u8d56\u6765\u7b80\u5316\u9879\u76ee\u7684\u5f00\u53d1\u548c\u90e8\u7f72\u3002<\/li>\n<li><strong>\u7279\u70b9\uff1a<\/strong> Spring Boot\u7684\u4e3b\u8981\u76ee\u6807\u662f\u4f7fSpring\u5e94\u7528\u7a0b\u5e8f\u7684\u6784\u5efa\u3001\u914d\u7f6e\u548c\u90e8\u7f72\u53d8\u5f97\u66f4\u52a0\u7b80\u5355\uff0c\u540c\u65f6\u63d0\u4f9b\u9ed8\u8ba4\u914d\u7f6e\u548c\u5d4c\u5165\u5f0f\u7684Web\u670d\u52a1\u5668\uff0c\u4f7f\u5f97\u6784\u5efa\u72ec\u7acb\u7684\u3001\u81ea\u5305\u542b\u7684Spring\u5e94\u7528\u53d8\u5f97\u66f4\u52a0\u5bb9\u6613\u3002<\/li>\n<li><strong>\u4f18\u52bf\uff1a<\/strong> \u7b80\u5316\u4e86\u914d\u7f6e\uff0c\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u7684Starter\u4f9d\u8d56\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u53ef\u4ee5\u66f4\u4e13\u6ce8\u4e8e\u4e1a\u52a1\u903b\u8f91\u800c\u4e0d\u662f\u7e41\u7410\u7684\u914d\u7f6e\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Spring MVC\uff1a<\/strong><\/p>\n<ul>\n<li><strong>\u7528\u9014\uff1a<\/strong> Spring MVC\u662fSpring\u6846\u67b6\u4e2d\u7528\u4e8e\u6784\u5efaWeb\u5e94\u7528\u7a0b\u5e8f\u7684\u4e00\u90e8\u5206\u3002\u5b83\u662f\u4e00\u4e2a\u57fa\u4e8eMVC\u8bbe\u8ba1\u6a21\u5f0f\u7684Web\u6846\u67b6\uff0c\u7528\u4e8e\u5904\u7406Web\u8bf7\u6c42\u3001\u6e32\u67d3\u89c6\u56fe\u548c\u7ba1\u7406\u6a21\u578b\u3002<\/li>\n<li><strong>\u7279\u70b9\uff1a<\/strong> Spring MVC\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7075\u6d3b\u7684\u3001\u6a21\u5757\u5316\u7684Web\u5f00\u53d1\u6846\u67b6\uff0c\u652f\u6301RESTful\u98ce\u683c\u7684Web\u670d\u52a1\u3002\u5b83\u4f7f\u7528\u6ce8\u89e3\u6765\u5b9a\u4e49\u63a7\u5236\u5668\u3001\u8bf7\u6c42\u6620\u5c04\u7b49\uff0c\u540c\u65f6\u652f\u6301\u591a\u79cd\u89c6\u56fe\u89e3\u6790\u5668\uff0c\u4f7f\u5f97\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528JSP\u3001Thymeleaf\u7b49\u4e0d\u540c\u7684\u89c6\u56fe\u6280\u672f\u3002<\/li>\n<li><strong>\u4f18\u52bf\uff1a<\/strong> \u901a\u8fc7\u4f7f\u7528Spring MVC\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u6784\u5efa\u5f3a\u5927\u7684Web\u5e94\u7528\u7a0b\u5e8f\uff0c\u540c\u65f6\u5145\u5206\u5229\u7528Spring\u7684\u4f9d\u8d56\u6ce8\u5165\u3001AOP\u7b49\u7279\u6027\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u603b\u7684\u6765\u8bf4\uff0cSpring Boot\u662f\u4e00\u4e2a\u7528\u4e8e\u7b80\u5316\u6574\u4e2aSpring\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u8fc7\u7a0b\u7684\u6846\u67b6\uff0c\u800cSpring MVC\u662fSpring\u6846\u67b6\u4e2d\u7684\u4e00\u4e2a\u6a21\u5757\uff0c\u4e13\u6ce8\u4e8e\u6784\u5efaWeb\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u8bb8\u591a\u60c5\u51b5\u4e0b\uff0c\u4f60\u53ef\u4ee5\u540c\u65f6\u4f7f\u7528\u5b83\u4eec\uff0c\u4f7f\u7528Spring Boot\u7b80\u5316\u9879\u76ee\u7684\u914d\u7f6e\u548c\u90e8\u7f72\uff0c\u800c\u4f7f\u7528Spring MVC\u6784\u5efa\u5f3a\u5927\u7684Web\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Spring Boot \u548c Spring MVC \u662f Spring Framework \u7684\u4e24\u4e2a\u4e0d\u540c\u7684\u6982\u5ff5\uff0c\u5b83\u4eec [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[100],"tags":[],"class_list":["post-8220","post","type-post","status-publish","format-standard","hentry","category-springboot"],"_links":{"self":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/8220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/comments?post=8220"}],"version-history":[{"count":2,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/8220\/revisions"}],"predecessor-version":[{"id":16588,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/8220\/revisions\/16588"}],"wp:attachment":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/media?parent=8220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/categories?post=8220"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/tags?post=8220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}