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

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

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

    隨筆 - 16  文章 - 0  trackbacks - 0
    <2012年4月>
    25262728293031
    1234567
    891011121314
    15161718192021
    22232425262728
    293012345

    常用鏈接

    留言簿

    隨筆檔案

    友情鏈接

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    最近因為開發需要,自己做了一個小的Demo部署在網上,具體網址http://www.17chuxing.com,實現一個類似公交查詢的功能,目前基本上能夠正常運行。

    現在總結一下,以便以后查詢使用;
    一、技術方面
         1、demo的整體技術結構采用比較簡單的Struts+spring+hibernate,struts 可以定義全局的異常、返回值、攔截器,hibernate采用統一的Spring-hibernate模板進行數據提交,減少開發量。如果采用hiberante懶加載方式,需要手工flush(),web.xml需要增加lazyLoadingFilter;
        <filter>
            <filter-name>lazyLoadingFilter</filter-name>
            <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
        </filter>
         2、數據量較小采用了mySql作為數據庫,采用mysql需要注意的是早期的mysql版本,表名區分大小寫,a 與A的結果不一樣;
         3、在展現層方面采用sitemesh裝飾器對展現的頁面進行渲染(包括樣式、頁頭、頁腳、統計代碼),保證每個網頁的風格一致性,并且可以減少一定開發工作量;
            <filter>
                <filter-name>sitemesh</filter-name>
                <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
            </filter>

         4、采用gzipFilter對請求進行壓縮,減少每次請求所需網絡流量;
            <filter>
                <filter-name>gzipFilter</filter-name>
                <filter-class>net.sf.ehcache.constructs.web.filter.GzipFilter</filter-class>
            </filter>
         5、首頁盡可能減少跳轉(redirect),因為每次跳轉都需要一定的時間;

    二、部署流程
         1、申請域名
         2、選擇虛擬機托管商
         3、部署程序
         4、申請備案

    三、其他方面;
          1、向搜索引擎提交網站
          2、其它思考點,通過rewrite 技術實現反寫,生成相應的靜態文件;
    <filter>
            <filter-name>rewriteFilter</filter-name>
            <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
            <!-- sets up log level (will be logged to context log)
                can be: TRACE, DEBUG, INFO (default), WARN, ERROR, FATAL, log4j, commons, sysout:{level} (ie, sysout:DEBUG)
                if you are having trouble using normal levels use sysout:DEBUG -->
            <init-param>
                <param-name>logLevel</param-name>
                <param-value>commons</param-value>
            </init-param>
            <!-- set the amount of seconds the conf file will be checked for reload
                can be a valid integer (0 denotes check every time,
                -1 denotes no reload check, default -1) -->
            <init-param>
                <param-name>confReloadCheckInterval</param-name>
                <param-value>-1</param-value>
            </init-param>
        </filter>
    posted on 2012-04-25 13:16 民工二代 閱讀(519) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 99无码人妻一区二区三区免费| 国产大片免费观看中文字幕| 一区二区在线免费观看| 国产亚洲成人在线播放va| 日木av无码专区亚洲av毛片| 亚洲人成影院在线高清| a级毛片免费网站| 亚洲精品99久久久久中文字幕| 亚洲最大中文字幕| 国产高清对白在线观看免费91| 亚洲精品视频在线观看你懂的| 免费看一级高潮毛片| 国产精品xxxx国产喷水亚洲国产精品无码久久一区 | a毛片全部播放免费视频完整18| 91成人免费福利网站在线| 精品亚洲一区二区三区在线播放 | 中文字幕无码免费久久9一区9| 免费观看无遮挡www的小视频| 四虎成人精品在永久免费| 日日摸日日碰夜夜爽亚洲| 亚洲午夜福利精品无码| 国产拍拍拍无码视频免费| 亚洲系列中文字幕| 免费的一级片网站| 久久国产精品免费一区二区三区| 色窝窝免费一区二区三区 | 国产黄在线观看免费观看不卡| 亚洲熟妇无码八AV在线播放| 免费看黄的成人APP| 亚洲 无码 在线 专区| 一区二区三区免费电影| 亚洲av日韩av激情亚洲| 日韩免费一区二区三区在线播放| 亚洲综合自拍成人| 国内自产拍自a免费毛片| 亚洲色大成网站www| 免费观看的毛片大全| 日韩精品亚洲专区在线影视| 亚洲成a人片77777kkkk| 爽爽爽爽爽爽爽成人免费观看| 亚洲综合一区二区|