{"id":11439,"date":"2023-11-28T22:16:49","date_gmt":"2023-11-28T14:16:49","guid":{"rendered":"https:\/\/wx.kaifamiao.info\/?p=11439"},"modified":"2023-12-11T10:49:21","modified_gmt":"2023-12-11T02:49:21","slug":"spring-de-he-xin-mo-kuai-you-na-xie","status":"publish","type":"post","link":"http:\/\/wx.kaifamiao.info\/index.php\/2023\/11\/28\/spring-de-he-xin-mo-kuai-you-na-xie\/","title":{"rendered":"Spring\u7684\u6838\u5fc3\u6a21\u5757\u6709\u54ea\u4e9b\uff1f"},"content":{"rendered":"<p>Spring\u6846\u67b6\u7531\u591a\u4e2a\u6a21\u5757\u7ec4\u6210\uff0c\u6bcf\u4e2a\u6a21\u5757\u90fd\u63d0\u4f9b\u4e0d\u540c\u7684\u529f\u80fd\u3002\u4ee5\u4e0b\u662fSpring\u7684\u4e00\u4e9b\u6838\u5fc3\u6a21\u5757\uff1a<\/p>\n<ol>\n<li>\n<strong>Spring\u6838\u5fc3\u5bb9\u5668\uff08Spring Core Container\uff09\uff1a<\/strong><\/p>\n<ul>\n<li><strong>Beans\uff1a<\/strong> \u63d0\u4f9b\u4e86BeanFactory\uff0c\u662fSpring\u6846\u67b6\u7684\u6838\u5fc3\u5bb9\u5668\uff0c\u8d1f\u8d23\u7ba1\u7406Bean\u7684\u751f\u547d\u5468\u671f\u3001\u4f9d\u8d56\u5173\u7cfb\u7b49\u3002<\/li>\n<li><strong>Core\uff1a<\/strong> \u63d0\u4f9b\u4e86\u6838\u5fc3\u529f\u80fd\uff0c\u5982<code>Spring IoC<\/code>\uff08\u63a7\u5236\u53cd\u8f6c\uff09\u548c<code>Spring AOP<\/code>\uff08\u9762\u5411\u5207\u9762\u7f16\u7a0b\uff09\u7b49\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Spring\u4e0a\u4e0b\u6587\uff08Spring Context\uff09\uff1a<\/strong><\/p>\n<ul>\n<li><strong>Application Context\uff1a<\/strong> \u4e3aBeans\u63d0\u4f9b\u4e86\u9ad8\u7ea7\u914d\u7f6e\uff0c\u652f\u6301\u56fd\u9645\u5316\u3001\u4e8b\u4ef6\u4f20\u64ad\u7b49\u529f\u80fd\u3002<\/li>\n<li><strong>Event and Listener\uff1a<\/strong> \u652f\u6301\u4e8b\u4ef6\u4f20\u64ad\u548c\u76d1\u542c\uff0c\u7528\u4e8e\u5728\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5904\u7406\u4e8b\u4ef6\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Spring AOP\uff08Aspect-Oriented Programming\uff09\uff1a<\/strong><\/p>\n<ul>\n<li>\u652f\u6301\u9762\u5411\u5207\u9762\u7f16\u7a0b\uff0c\u63d0\u4f9b\u58f0\u660e\u5f0f\u7684\u65b9\u6cd5\u62e6\u622a\u548c\u589e\u5f3a\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Spring DAO\uff08Data Access\uff09\uff1a<\/strong><\/p>\n<ul>\n<li>\u7b80\u5316\u6570\u636e\u5e93\u8bbf\u95ee\uff0c\u63d0\u4f9b\u5bf9\u6570\u636e\u8bbf\u95ee\u6280\u672f\u7684\u62bd\u8c61\uff0c\u5305\u62ecJDBC\u548cORM\u6846\u67b6\u7684\u96c6\u6210\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Spring ORM\uff08Object-Relational Mapping\uff09\uff1a<\/strong><\/p>\n<ul>\n<li>\u63d0\u4f9b\u5bf9ORM\u6846\u67b6\uff08\u5982Hibernate\u3001MyBatis\u7b49\uff09\u7684\u96c6\u6210\u652f\u6301\uff0c\u7b80\u5316\u6570\u636e\u5e93\u8bbf\u95ee\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Spring Web\uff1a<\/strong><\/p>\n<ul>\n<li>\u5305\u62ecSpring MVC\uff0c\u7528\u4e8e\u6784\u5efaWeb\u5e94\u7528\u7a0b\u5e8f\uff0c\u63d0\u4f9b\u57fa\u4e8eMVC\u7684Web\u6846\u67b6\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Spring Web MVC\uff1a<\/strong><\/p>\n<ul>\n<li>\u63d0\u4f9b\u4e86\u4e00\u4e2a\u6a21\u578b-\u89c6\u56fe-\u63a7\u5236\u5668\uff08MVC\uff09\u6846\u67b6\uff0c\u7528\u4e8e\u6784\u5efa\u7075\u6d3b\u7684Web\u5e94\u7528\u7a0b\u5e8f\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Spring Webflux\uff1a<\/strong><\/p>\n<ul>\n<li>\u63d0\u4f9b\u4e86\u54cd\u5e94\u5f0f\u7f16\u7a0b\u7684\u652f\u6301\uff0c\u9002\u7528\u4e8e\u6784\u5efa\u9ad8\u6027\u80fd\u548c\u53ef\u4f38\u7f29\u7684Web\u5e94\u7528\u7a0b\u5e8f\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Spring Security\uff1a<\/strong><\/p>\n<ul>\n<li>\u63d0\u4f9b\u4e86\u7efc\u5408\u7684\u5b89\u5168\u670d\u52a1\uff0c\u5305\u62ec\u8eab\u4efd\u9a8c\u8bc1\u3001\u6388\u6743\u3001\u653b\u51fb\u9632\u62a4\u7b49\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Spring Boot\uff1a<\/strong><\/p>\n<ul>\n<li>\u7b80\u5316\u4e86Spring\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u53d1\uff0c\u63d0\u4f9b\u4e86\u81ea\u52a8\u914d\u7f6e\u3001\u5d4c\u5165\u5f0f\u670d\u52a1\u5668\u7b49\u529f\u80fd\uff0c\u4f7f\u5f97\u6784\u5efa\u72ec\u7acb\u7684\u3001\u81ea\u5305\u542b\u7684Spring\u5e94\u7528\u66f4\u52a0\u5bb9\u6613\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Spring Test\uff1a<\/strong><\/p>\n<ul>\n<li>\u63d0\u4f9b\u4e86\u5bf9\u5355\u5143\u6d4b\u8bd5\u548c\u96c6\u6210\u6d4b\u8bd5\u7684\u652f\u6301\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u8fd9\u4e9b\u6a21\u5757\u534f\u540c\u5de5\u4f5c\uff0c\u6784\u6210\u4e86\u4e00\u4e2a\u5f3a\u5927\u800c\u7075\u6d3b\u7684\u6846\u67b6\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u53ef\u4ee5\u9009\u62e9\u6027\u5730\u4f7f\u7528\u5404\u4e2a\u6a21\u5757\uff0c\u6839\u636e\u9879\u76ee\u9700\u6c42\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Spring\u6846\u67b6\u7531\u591a\u4e2a\u6a21\u5757\u7ec4\u6210\uff0c\u6bcf\u4e2a\u6a21\u5757\u90fd\u63d0\u4f9b\u4e0d\u540c\u7684\u529f\u80fd\u3002\u4ee5\u4e0b\u662fSpring\u7684\u4e00\u4e9b\u6838\u5fc3\u6a21\u5757\uff1a Spring\u6838\u5fc3 [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[121],"tags":[],"class_list":["post-11439","post","type-post","status-publish","format-standard","hentry","category-spring"],"_links":{"self":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/11439","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=11439"}],"version-history":[{"count":2,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/11439\/revisions"}],"predecessor-version":[{"id":17046,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/11439\/revisions\/17046"}],"wp:attachment":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/media?parent=11439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/categories?post=11439"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/tags?post=11439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}