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

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

           2. 有了很多標準的規(guī)范,比如 :
                                      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將會出現(xiàn)/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>
              具體的參數(shù)可以設置.

          4. 其他
              后續(xù)....

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

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

          主站蜘蛛池模板: 铜川市| 抚州市| 永胜县| 泰安市| 龙游县| 庆阳市| 抚州市| 武城县| 名山县| 玛沁县| 延长县| 陇南市| 合山市| 石家庄市| 德庆县| 县级市| 马鞍山市| 南丰县| 大丰市| 台北县| 腾冲县| 湘潭市| 铁岭市| 康马县| 天长市| 岳池县| 乐清市| 望江县| 彝良县| 广西| 安福县| 阿图什市| 富顺县| 改则县| 积石山| 区。| 易门县| 嘉峪关市| 璧山县| 新野县| 新田县|