{"id":1924,"date":"2017-02-15T19:41:09","date_gmt":"2017-02-15T11:41:09","guid":{"rendered":"https:\/\/ai.zhousir.top\/?p=1924"},"modified":"2026-08-18T12:09:37","modified_gmt":"2026-08-18T04:09:37","slug":"java%e5%b7%a5%e7%a8%8b%e5%b8%88%e9%9d%a2%e8%af%95%e6%a1%86%e6%9e%b6%e7%af%87%e4%b8%89","status":"publish","type":"post","link":"https:\/\/ai.zhousir.top\/?p=1924","title":{"rendered":"Java\u5de5\u7a0b\u5e08\u9762\u8bd5\u6846\u67b6\u7bc7(\u4e09)"},"content":{"rendered":"<section id=\"wenyan\" style=\"font-family: system-ui, 'Apple Color Emoji', 'Segoe UI', 'Segoe UI Symbol', 'Noto Sans', Roboto, sans-serif; line-height: 1.75; font-size: 16px; color: #000000; caret-color: #000000;\" data-provider=\"WenYan\">\n<p style=\"margin: 1em 0px;\">\u6846\u67b6\u7bc7\u9762\u8bd5\u901a\u5e38\u4ece <strong style=\"color: #4870ac;\">\u53cd\u5c04 \/ \u6ce8\u89e3<\/strong> \u6253\u5e95\uff0c\u518d\u95ee ORM\u3001Hibernate\u3001Struts2\u3001Spring IOC\/AOP\u3001Spring MVC \u548c MyBatis\u3002\u4e0b\u9762\u6309\u8fd9\u4e2a\u987a\u5e8f\u628a\u539f\u56fe\u548c\u914d\u7f6e\u793a\u4f8b\u7559\u4e0b\u6765\uff0c\u65b9\u4fbf\u5bf9\u7740\u56fe\u56de\u5fc6\u8c03\u7528\u94fe\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2020\/04\/201407311445259040063.jpg\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2826\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2020\/04\/201407311445259040063.jpg\" alt=\"20140731144525904006\" width=\"383\" height=\"268\" \/><\/a><\/p>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u4e00\u3001\u6846\u67b6\u57fa\u7840\uff1a\u53cd\u5c04\u4e0e\u6ce8\u89e3<\/h2>\n<p style=\"margin: 1em 0px;\">Java \u672c\u8eab\u4e0d\u662f\u52a8\u6001\u8bed\u8a00\uff0c\u8981\u300c\u8fd0\u884c\u65f6\u624d\u51b3\u5b9a\u7528\u54ea\u4e2a\u7c7b\u3001\u54ea\u4e2a\u65b9\u6cd5\u300d\uff0c\u9760\u7684\u662f<strong style=\"color: #4870ac;\">\u53cd\u5c04<\/strong>\u3002\u7ec6\u8282\u53ef\u770b <a href=\"http:\/\/www.jianshu.com\/p\/6277c1f9f48d\" target=\"_blank\">\u53cd\u5c04\u7b14\u8bb0<\/a>\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-93babe85c58f86db.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" data-original-src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-93babe85c58f86db.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\" \/><\/p>\n<p style=\"margin: 1em 0px;\"><strong style=\"color: #4870ac;\">\u521b\u5efa\u5bf9\u8c61\u7684\u5e38\u89c1\u8def\u5b50<\/strong>\uff08\u9762\u8bd5\u5e38\u95ee\uff09\uff1a<\/p>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">new<\/code> \u8bed\u53e5\u3002<\/section>\n<\/li>\n<li>\n<section>\u5de5\u5382\u65b9\u6cd5\uff0c\u4f8b\u5982 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">String.valueOf()<\/code>\u3002<\/section>\n<\/li>\n<li>\n<section>\u53cd\u5c04\uff1aClass \u7684\u4e09\u79cd\u62ff\u6cd5\uff0c\u6216 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">newInstance()<\/code>\u3002<\/section>\n<\/li>\n<li>\n<section><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">clone()<\/code>\u3002<\/section>\n<\/li>\n<li>\n<section>\u53cd\u5e8f\u5217\u5316\uff1a<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">ObjectInputStream.readObject()<\/code>\u3002<\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px;\">\u6ce8\u89e3\u80fd\u5c11\u5199\u4e0d\u5c11\u6837\u677f\u3002JDK \u81ea\u5e26\u548c\u7b2c\u4e09\u65b9\u90fd\u6709\uff0c\u7528\u6cd5\u89c1 <a href=\"http:\/\/www.jianshu.com\/p\/b560b30726d4\" target=\"_blank\">\u6ce8\u89e3\u7b14\u8bb0<\/a>\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-aaa8a1e1b233829f.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" data-original-src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-aaa8a1e1b233829f.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\" \/><\/p>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u4e8c\u3001ORM \u4e0e Hibernate<\/h2>\n<p style=\"margin: 1em 0px;\"><strong style=\"color: #4870ac;\">ORM<\/strong> \u662f Object\/Relationship Mapping\u3002\u9762\u5411\u5bf9\u8c61\u5199\u51fa\u6765\u7684\u5bf9\u8c61\uff0c\u6700\u7ec8\u8981\u8fdb\u5173\u7cfb\u5e93\uff1b\u82e5\u6bcf\u5904\u624b\u5199 SQL\uff0c\u6362\u5e93\u3001\u5206\u9875\u3001\u79fb\u690d\u90fd\u75bc\u3002ORM \u60f3\u8ba9\u4f60\u5c3d\u91cf\u7528\u5bf9\u8c61\u601d\u7ef4\uff0c\u5c11\u628a SQL \u6563\u843d\u5728\u4e1a\u52a1\u91cc\u3002<\/p>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section>\u4e0d\u540c\u5e93 SQL \u65b9\u8a00\u4e0d\u4e00\u6837\uff08T-SQL \u80fd\u8dd1\u7684\uff0cPL-SQL \u672a\u5fc5\u80fd\uff09\u3002<\/section>\n<\/li>\n<li>\n<section>\u540c\u4e00\u529f\u80fd\u5b9e\u73b0\u4e0d\u540c\uff0c\u5206\u9875\u5c31\u662f\u5178\u578b\u3002<\/section>\n<\/li>\n<li>\n<section>\u7a0b\u5e8f\u7ed1\u6b7b SQL\uff0c\u6269\u5c55\u548c\u7ef4\u62a4\u90fd\u96be\u3002<\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px;\">Hibernate \u662f Java \u91cc\u5f00\u6e90\u7684 ORM\uff1a\u5bf9 JDBC \u505a\u8f7b\u91cf\u5c01\u88c5\uff0c\u6700\u7ec8\u4ecd\u8d70 JDBC\uff1b\u76f8\u5bf9 EJB \u90a3\u79cd\u91cd\u91cf\u7ea7\u89c4\u8303\uff0c\u5b83\u66f4\u8f7b\uff0c\u5939\u5728\u6570\u636e\u5e93\u548c\u4e1a\u52a1\u4e4b\u95f4\u5f53\u6301\u4e45\u5c42\u3002<\/p>\n<p style=\"margin: 1em 0px;\">HQL \u91cc <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">from<\/code> \u662f\u5fc5\u987b\u7684\uff0c\u53ef\u4ee5\u6ca1\u6709 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">select<\/code>\u3002\u5e38\u7528\u5c5e\u6027\uff1a<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">cascade<\/code> \u7ba1\u7ea7\u8054\uff0c<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">inverse<\/code> \u6307\u5b9a\u8c01\u7ef4\u62a4\u5173\u8054\u3002<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">&lt;hibernate-mapping&gt;\n\n    &lt;class name=\"\" table=\"\"&gt;\n\n        &lt;id name=\"id\" type=\"java.lang.Long\"&gt;\n\n            &lt;column name=\"ID\" \/&gt;\n\n            &lt;generator class=\"increment\" \/&gt;\n\n        &lt;\/id&gt;\n\n        &lt;many-to-one name=\"\" class=\"\"\n\n            fetch=\"\"&gt;\n\n            &lt;column name=\"\" \/&gt;\n\n        &lt;\/many-to-one&gt;\n\n        ......\n\n        &lt;set name=\"\" inverse=\"true\"  cascade=\"all\" lazy=\"false\"&gt;\n\n            &lt;key&gt;\n\n                &lt;column name=\"\" \/&gt;\n\n            &lt;\/key&gt;\n\n            &lt;one-to-many class=\"\" \/&gt;\n\n        &lt;\/set&gt;\n\n    &lt;\/class&gt;\n\n&lt;\/hibernate-mapping&gt;<\/code><\/pre>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u4e09\u3001Struts2<\/h2>\n<p style=\"margin: 1em 0px;\">Struts \u662f\u6210\u719f\u7684 MVC Web \u6846\u67b6\u3002\u5de5\u4f5c\u539f\u7406\u548c\u76ee\u5f55\u7ed3\u6784\u89c1 <a href=\"http:\/\/www.jianshu.com\/p\/46f870043522\" target=\"_blank\">\u8fd9\u7bc7<\/a>\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">\u52a8\u6001\u65b9\u6cd5\u8c03\u7528<\/h3>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-3d71cc7c57fa81e7.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" data-original-src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-3d71cc7c57fa81e7.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\" \/><\/p>\n<p style=\"margin: 1em 0px;\">\u2460 \u6307\u5b9a <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">method<\/code> \u5c5e\u6027\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">&lt;action name=\"\" method=\"\" class=\"\"&gt;\n\n&lt;result&gt;\/index.jsp&lt;\/result&gt;\n\n&lt;\/action&gt;<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u2461 \u611f\u53f9\u53f7\u65b9\u5f0f\uff08\u9700\u6253\u5f00\u52a8\u6001\u65b9\u6cd5\u8c03\u7528\uff09\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">&lt;action name=\"\" class=\"\"&gt;\n\n&lt;result&gt;\/index.jsp&lt;\/result&gt;\n\n&lt;\/action&gt;\n\n&lt;constant name=\"structs.enable.DynamicMethodInvocation\" value=\"true\"&gt;&lt;\/constant&gt;<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u2462 \u901a\u914d\u7b26\uff1a\u591a\u4e2a method \u65f6 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">method=\"{1}{2}...\"<\/code>\uff0c\u540c\u65f6\u6539 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">name<\/code> \u4e3a <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">_*_*...<\/code>\uff0c\u5e76\u914d\u597d <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">&lt;result&gt;<\/code>\u3002<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">&lt;action name=\"_*\" method=\"{1}\" class=\"\"&gt;\n\n&lt;result&gt;\/index.jsp&lt;\/result&gt;\n\n&lt;result&gt;\/{1}.jsp&lt;\/result&gt;\n\n&lt;\/action&gt;<\/code><\/pre>\n<p style=\"margin: 1em 0px;\"><strong style=\"color: #4870ac;\">\u8bbf\u95ee Servlet API<\/strong>\uff1a<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-fb54aa9e19cee806.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" data-original-src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-fb54aa9e19cee806.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\" \/><\/p>\n<p style=\"margin: 1em 0px;\"><strong style=\"color: #4870ac;\">\u62e6\u622a\u5668<\/strong>\uff1a\u6267\u884c Action \u524d\u5148\u8dd1\u62e6\u622a\u5668\uff0c\u591a\u4e2a\u5c31\u6309\u987a\u5e8f\uff1b\u5168\u90e8\u8fc7\u5b8c\u624d\u8fdb\u4e1a\u52a1\uff1b\u8fd4\u56de Result \u5339\u914d\u89c6\u56fe\u540e\uff0c\u62e6\u622a\u5668\u518d\u53cd\u5411\u8d70\u4e00\u904d\uff0c\u6700\u540e\u54cd\u5e94\u5ba2\u6237\u7aef\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-da0e53c30315f04a.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" data-original-src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-da0e53c30315f04a.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\" \/><\/p>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u56db\u3001Spring\uff1aIOC\u3001AOP \u4e0e\u4e8b\u52a1<\/h2>\n<p style=\"margin: 1em 0px;\">Spring \u662f\u8f7b\u91cf\u7ea7 <strong style=\"color: #4870ac;\">IOC + AOP<\/strong> \u5bb9\u5668\uff1a\u4f53\u79ef\u548c\u5f00\u9500\u90fd\u5c0f\uff0c\u7528\u63a7\u5236\u53cd\u8f6c\u677e\u8026\u5408\uff0c\u7528\u5207\u9762\u628a\u65e5\u5fd7\u3001\u4e8b\u52a1\u3001\u5b89\u5168\u4ece\u4e1a\u52a1\u91cc\u62c6\u51fa\u53bb\uff0c\u5e76\u7ba1\u5bf9\u8c61\u7684\u914d\u7f6e\u548c\u751f\u547d\u5468\u671f\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-60218a5d308b68d3.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" data-original-src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-60218a5d308b68d3.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\" \/><\/p>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section>\u4e1a\u52a1\u5bf9\u8c61\u8fdb\u5bb9\u5668\u3002<\/section>\n<\/li>\n<li>\n<section>\u6309\u914d\u7f6e\u5143\u6570\u636e\u751f\u4ea7\u7cfb\u7edf\u9700\u8981\u7684\u5bf9\u8c61\u3002<\/section>\n<\/li>\n<li>\n<section>\u7528\u7684\u65f6\u5019\u76f4\u63a5\u4ece\u5bb9\u5668\u62ff\u3002<\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px;\"><strong style=\"color: #4870ac;\">AOP<\/strong> \u9760\u9884\u7f16\u8bd1\uff08AspectJ\uff09\u6216\u8fd0\u884c\u671f\u52a8\u6001\u4ee3\u7406\uff08JDK \/ CGLib\uff0c\u4e5f\u5c31\u662f Spring AOP\u3001JBoss AOP\uff09\u505a\u7edf\u4e00\u7ef4\u62a4\uff1a\u65e5\u5fd7\u3001\u6027\u80fd\u3001\u5b89\u5168\u3001\u4e8b\u52a1\u3001\u5f02\u5e38\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-0ab7692bd66aef0e.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" data-original-src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-0ab7692bd66aef0e.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\" \/><\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-68bc134577492f87.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" data-original-src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-68bc134577492f87.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\" \/><\/p>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u4e94\u3001Spring MVC<\/h2>\n<p style=\"margin: 1em 0px;\">Spring MVC \u662f\u524d\u7aef\u63a7\u5236\u5668\u5f62\u6001\u3002<strong style=\"color: #4870ac;\">\u9759\u6001\u6982\u5ff5<\/strong>\uff1a\u8bf7\u6c42\u7ecf <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">DispatcherServlet<\/code> \u5206\u5230 Controller\uff0c\u4ea7\u51fa Model\uff0c\u518d\u7ecf DispatcherServlet \u4ea4\u7ed9 View\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-6d26a567a8455283.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" data-original-src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-6d26a567a8455283.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\" \/><\/p>\n<p style=\"margin: 1em 0px;\"><strong style=\"color: #4870ac;\">\u52a8\u6001\u6982\u5ff5<\/strong>\uff1aDispatcherServlet \u672c\u8eab\u662f Servlet\uff0c\u62e6\u4f4f Request \u2192 HandlerMapping \u627e\u51fa Controller \u548c\u62e6\u622a\u5668 \u2192 \u6253\u6210 HandlerAdapter \u94fe\u6761 \u2192 Controller \u8fd4\u56de ModelAndView \u2192 ViewResolver \u89e3\u6790\u51fa View \u2192 \u6a21\u578b\u8fdb\u89c6\u56fe\u5b8c\u6210\u6e32\u67d3\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-6433fafb3e0953c6.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" data-original-src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-6433fafb3e0953c6.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\" \/><\/p>\n<p style=\"margin: 1em 0px;\">\u62e6\u622a\u5668\u5de5\u4f5c\u6d41\uff1a<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-3ab4d4542c4216de.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" data-original-src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-3ab4d4542c4216de.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\" \/><\/p>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u516d\u3001MyBatis \u4e0e OGNL<\/h2>\n<p style=\"margin: 1em 0px;\">MyBatis \u540c\u6837\u662f\u5f00\u6e90 ORM\uff0c\u4f46\u504f\u300c\u534a\u81ea\u52a8\u300d\uff1a\u652f\u6301\u666e\u901a SQL\u3001\u5b58\u50a8\u8fc7\u7a0b\u3001\u9ad8\u7ea7\u6620\u5c04\uff0c\u628a\u5927\u91cf SQL \u62bd\u5230\u914d\u7f6e\u6587\u4ef6\u91cc\u7075\u6d3b\u6539\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-d334056706476d0c.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" data-original-src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-d334056706476d0c.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\" \/><\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-6c191f8cfad522ba.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" data-original-src=\"http:\/\/upload-images.jianshu.io\/upload_images\/4259662-6c191f8cfad522ba.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\" \/><\/p>\n<table style=\"display: table; text-align: left; overflow: auto; border-collapse: collapse; margin: 1.4em auto; max-width: 100%; table-layout: fixed; overflow-wrap: break-word; word-break: break-all;\" width=\"800\">\n<thead>\n<tr>\n<th style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top; text-align: center; font-weight: bold; color: #4870ac; background: #f7f7f7;\">\u5bf9\u6bd4<\/th>\n<th style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top; text-align: center; font-weight: bold; color: #4870ac; background: #f7f7f7;\">Hibernate<\/th>\n<th style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top; text-align: center; font-weight: bold; color: #4870ac; background: #f7f7f7;\">MyBatis<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">\u81ea\u52a8\u5316<\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">\u5168\u81ea\u52a8\uff0c\u5c01\u88c5\u5e93\u7ed3\u6784\u3001\u5168\u5957\u6620\u5c04<\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">\u534a\u81ea\u52a8\uff0c\u9762\u5bf9\u7684\u662f\u7eaf\u7cb9 Java \u5bf9\u8c61<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">SQL<\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">\u8fd0\u884c\u671f\u81ea\u52a8\u751f\u6210<\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">\u4e0d\u81ea\u52a8\u751f\u6210\uff0cSQL \u5199\u5728\u914d\u7f6e\u91cc<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<blockquote style=\"display: block; font-size: 0.9em; border-left: 3px solid #4870ac; padding: 0.5em 1em; margin: 0px; background: #f6f8fa; color: #40464f;\">\n<p style=\"margin: 1em 0px;\"><strong style=\"color: #4870ac;\">\u4e00\u53e5\u8bdd\u603b\u7ed3\uff1a\u6846\u67b6\u9762\u8bd5\u5148\u95ee\u53cd\u5c04\/\u6ce8\u89e3\u600e\u4e48\u6491\u8d77\u52a8\u6001\u548c\u5c11\u6837\u677f\uff0c\u518d\u95ee ORM \u4e3a\u4ec0\u4e48\u8981\u5b58\u5728\uff1bHibernate \u5168\u81ea\u52a8\u751f\u6210 SQL\uff0cMyBatis \u534a\u81ea\u52a8\u628a SQL \u5916\u7f6e\uff1bStruts2 \u62e6\u622a\u5668\u5939 Action\uff0cSpring \u7528 IOC \u88c5\u5bf9\u8c61\u3001AOP \u6a2a\u5207\u3001MVC \u9760 DispatcherServlet \u628a\u8bf7\u6c42\u62c6\u6210 Handler \u548c\u89c6\u56fe\u3002<\/strong><\/p>\n<\/blockquote>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>\u6846\u67b6\u7bc7\u9762\u8bd5\u901a\u5e38\u4ece \u53cd\u5c04 \/ \u6ce8\u89e3 \u6253\u5e95\uff0c\u518d\u95ee ORM\u3001Hibernate\u3001Struts2\u3001Spring IOC [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[46],"tags":[43,171,140],"_links":{"self":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/1924"}],"collection":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1924"}],"version-history":[{"count":2,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/1924\/revisions"}],"predecessor-version":[{"id":2832,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/1924\/revisions\/2832"}],"wp:attachment":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}