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 冰是没有未来的,因为它的永恒 阅读(335) 评论(0)  编辑  收藏 所属分类: grails

当下,把心放下 放下如果是可能的,那一定是在当下,
不在过去,也不在未来。
当下放下。唯有活在当下,你的问题才能放下。