<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-295  評論-26  文章-1  trackbacks-0
    public abstract class HttpServletBean
    extends HttpServlet
    		

    Simple extension of HttpServlet which treats its config parameters (init-param entries within the servlet tag in web.xml) as bean properties.

    HttpServlet的簡單擴展用來處理 (init-param)in the web.xml
    A handy superclass for any type of servlet. Type conversion of config parameters is automatic, with the corresponding setter method getting invoked with the converted value. It is also possible for subclasses to specify required properties. Parameters without matching bean property setter will simply be ignored.

    This servlet leaves request handling to subclasses, inheriting the default behavior of HttpServlet (doGet, doPost, etc).

    This generic servlet base class has no dependency on the Spring ApplicationContext concept. Simple servlets usually don't load their own context but rather access service beans from the Spring root application context, accessible via the filter's ServletContext (see WebApplicationContextUtils).

    The FrameworkServlet class is a more specific servlet base class which loads its own application context. FrameworkServlet serves as direct base class of Spring's full-fledged DispatcherServlet.

    public abstract class FrameworkServlet
    extends HttpServletBean
    implements ApplicationListener
    		

    Base servlet for Spring's web framework. Provides integration with a Spring application context, in a JavaBean-based overall solution.

    spring web Framework的基礎 servlet? ,提供在以javabean為基礎的整體解決方案已完成與spring應用上下文的集成
    This class offers the following functionality:
    1.管理一個servlet一個網絡應用上下文實例,這個servlet的配置由servlet命名空間里的bean來決定
    2.根據請求處理發布事件,是否請求成功的被處理了

    • Manages a WebApplicationContext instance per servlet. The servlet's configuration is determined by beans in the servlet's namespace.
    • Publishes events on request processing, whether or not a request is successfully handled.

    Subclasses must implement doService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) to handle requests. Because this extends HttpServletBean rather than HttpServlet directly, bean properties are automatically mapped onto it. Subclasses can override initFrameworkServlet() for custom initialization.

    因為它繼承自httpservletBean 所以bean的屬性已經被自動的裝配了,子類可以通過覆蓋initFrameworkServlet來定制初始化bean

    Detects a "contextClass" parameter at the servlet init-param level, falling back to the default context class, XmlWebApplicationContext, if not found. Note that, with the default FrameworkServlet, a custom context class needs to implement the ConfigurableWebApplicationContext SPI.

    Passes a "contextConfigLocation" servlet init-param to the context instance, parsing it into potentially multiple file paths which can be separated by any number of commas and spaces, like "test-servlet.xml, myServlet.xml". If not explicitly specified, the context implementation is supposed to build a default location from the namespace of the servlet.

    Note: In case of multiple config locations, later bean definitions will override ones defined in earlier loaded files, at least when using Spring's default ApplicationContext implementation. This can be leveraged to deliberately override certain bean definitions via an extra XML file.

    The default namespace is "'servlet-name'-servlet", e.g. "test-servlet" for a servlet-name "test" (leading to a "/WEB-INF/test-servlet.xml" default location with XmlWebApplicationContext). The namespace can also be set explicitly via the "namespace" servlet init-param.



    大盤預測 國富論
    posted on 2007-08-29 10:13 華夢行 閱讀(675) 評論(0)  編輯  收藏 所屬分類: Spring
    主站蜘蛛池模板: 亚洲偷偷自拍高清| 7m凹凸精品分类大全免费| 久久久无码精品亚洲日韩蜜桃| 亚洲人成免费网站| 国产成人无码精品久久久免费| 国产日本亚洲一区二区三区| 亚洲阿v天堂在线| jjzz亚洲亚洲女人| 亚洲综合欧美色五月俺也去| 亚洲AV本道一区二区三区四区| 亚洲午夜国产片在线观看| 思思99re66在线精品免费观看| 免费一级不卡毛片| 九九九国产精品成人免费视频| 亚洲av日韩综合一区二区三区 | 亚洲日韩在线中文字幕综合 | 亚欧日韩毛片在线看免费网站| 日韩在线一区二区三区免费视频 | 在线免费观看国产| a级特黄毛片免费观看| yellow视频免费在线观看| 亚洲成av人片天堂网无码】| 亚洲国产成人精品激情| 亚洲精品资源在线| 久久亚洲精品无码VA大香大香| 亚洲AV无码国产丝袜在线观看| 亚洲中文字幕不卡无码| 亚洲一区二区三区偷拍女厕| 国产亚洲精品线观看动态图| 亚洲日韩在线观看| 亚洲欧洲中文日韩久久AV乱码| 亚洲不卡无码av中文字幕| 99久久精品免费视频| 日韩免费高清播放器| 成人电影在线免费观看| 成人无码a级毛片免费| 鲁丝片一区二区三区免费| 男人j进入女人j内部免费网站| 中文字幕在线免费视频| 女同免费毛片在线播放| 国产免费一区二区视频|