{"id":989,"date":"2010-10-02T00:26:49","date_gmt":"2010-10-02T00:26:49","guid":{"rendered":"http:\/\/enjoyasp.net\/?p=989"},"modified":"2010-10-02T00:26:49","modified_gmt":"2010-10-02T00:26:49","slug":"spring%e4%b8%8e-struts-%e6%95%b4%e5%90%88","status":"publish","type":"post","link":"https:\/\/enjoyasp.net\/index.php\/2010\/10\/02\/spring%e4%b8%8e-struts-%e6%95%b4%e5%90%88\/","title":{"rendered":"Spring\u4e0e Struts \u6574\u5408"},"content":{"rendered":"<p>1, Spring \u5728web.xml\u4e2d\u914d\u7f6eSpring listener<br \/>\n&lt;listener&gt;<br \/>\n&lt;listener-class&gt;<br \/>\norg.springframework.web.context.ContextLoaderListener<br \/>\n&lt;\/listener-class&gt;<br \/>\n&lt;\/listener&gt;<\/p>\n<p>&lt;context-param&gt;<br \/>\n&lt;param-name&gt;contextConfigLocation&lt;\/param-name&gt;<br \/>\n&lt;param-value&gt;\/WEB-INF\/classes\/applicationContext.xml&lt;\/param-value&gt;<br \/>\n&lt;\/context-param&gt;<br \/>\n2, Strutx \u914d\u7f6e<br \/>\n1.x, \u5728struts-config.xml\u4e2d\u4e3aaction\u7684type\u6307\u5b9a\u4e3a org.springframework.web.struts.DelegatingActionProxy<br \/>\n2.x? \u5728struts.xml\u4e2d\u4e3aaction\u7684class\u6307\u5b9a\u4e3a\u5177\u4f53\u7c7b(\u53ea\u6ce8\u5165\u5c5e\u6027),\u6216bean id<br \/>\n3, Spring\u5728 applicationContext.xml\u4e2d\u914d\u7f6ebean id<br \/>\n1.x \u5168\u90e8\u914d\u7f6e,bean id\u4e0eaction\u7684path\u76f8\u540c<br \/>\n2.0? \u6309action\u7684class\u505a\u76f8\u5e94\u914d\u7f6e,<br \/>\n???? \u82e5\u662f\u5c5e\u6027\u6ce8\u5165, bean id \u8981\u4e0eaction\u7c7b\u4e2d\u7684\u5c5e\u6027\u540d\u76f8\u540c<br \/>\n???? \u82e5\u662f\u5168\u90e8\u6ce8\u5165, bean id \u8981\u4e0eaction\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u4e2d\u6307\u5b9a\u7684class\u76f8\u540c<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1, Spring \u5728web.xml\u4e2d\u914d\u7f6eSpring listener &lt;listener&gt; &#038; [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-989","post","type-post","status-publish","format-standard","hentry","category-spring"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/comments?post=989"}],"version-history":[{"count":0,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/989\/revisions"}],"wp:attachment":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/media?parent=989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/categories?post=989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/tags?post=989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}