ann
          冰是沒有未來的,因為它的永恒
          posts - 107,comments - 34,trackbacks - 0
            grails 升級到1.2.0 版本之后需要注意的

           1.默認的webserver是tomcat.
             如果想切換為jetty。grails uninstall-plugin tomcat
                                grails install-plugin jetty

           2. 有了很多標準的規范,比如 :
                                      1). <meta name="layout" content="indexlayout" /> 必須放入<header/>標簽之內。
                                      2).urlmap中 "/test_$guid?"(controller:"test",action:"list")
                                                "/" (controller:"index",action:"list")
                                                 root map將不會生效.
                                                 設置"/test_$guid"(controller:"test",action:"list")
                                                     "/" (controller:"index",action:"list")
                                                 root map將會生效.
                                     
                                  等等
           3. hibernate cache
              在linux中如果在DataSource.groovy中設置:
                      hibernate {
                            cache.use_second_level_cache=true
                            cache.use_query_cache=true
                            cache.provider_class='com.opensymphony.oscache.hibernate.OSCacheProvider'

                      }
               不同的用戶啟動grails app將會出現/tmp/***無權限問題
               因為這里將采用默認的ehcache設置
               解決的辦法之一:在grails-ap/conf中加入ehcache.xml文件

              
          <?xml version="1.0" encoding="UTF-8"?>

          <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ehcache.xsd" updateCheck="true" monitoring="autodetect">

              
          <diskStore path="java.io.tmpdir"/>

              
          <cacheManagerEventListenerFactory class="" properties=""/>


              
          <defaultCache maxElementsInMemory="10000" eternal="false" timeToLiveSeconds="120" overflowToDisk="false" diskPersistent="false"/>

              
          <cache name="sampleCache1" maxElementsInMemory="10000" timeToIdleSeconds="300" />

              
          <cache name="org.hibernate.cache.UpdateTimestampsCache" maxElementsInMemory="10000" timeToIdleSeconds="300" />

              
          <cache name="org.hibernate.cache.StandardQueryCache" maxElementsInMemory="10000"  timeToIdleSeconds="300" />

          </ehcache>
              具體的參數可以設置.

          4. 其他
              后續....

          posted on 2010-01-05 16:55 冰是沒有未來的,因為它的永恒 閱讀(353) 評論(0)  編輯  收藏 所屬分類: grails

          當下,把心放下 放下如果是可能的,那一定是在當下,
          不在過去,也不在未來。
          當下放下。唯有活在當下,你的問題才能放下。

          主站蜘蛛池模板: 黔西县| 辉县市| 长沙县| 额尔古纳市| 门源| 南江县| 通许县| 丹寨县| 灵石县| 梁山县| 香格里拉县| 辽源市| 连云港市| 当雄县| 绵阳市| 仲巴县| 涪陵区| 湟源县| 巍山| 西乌| 盐池县| 介休市| 夹江县| 南漳县| 黑龙江省| 繁峙县| 丰原市| 临沂市| 峨山| 湛江市| 保定市| 孝感市| 凤山市| 龙州县| 东至县| 文昌市| 左贡县| 额敏县| 彰化县| 土默特右旗| 卢氏县|