自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 java内存性能

一、内存溢出类型1、java.lang.OutOfMemoryError: PermGen space JVM管理两种类型的内存,堆和非堆。堆是给开发人员用的上面说的就是,是在JVM启动时创建;非堆是留给JVM自己用的,用来存放类的信息的。它和堆不同,运行期内GC不会释放空间。如果web app用了大量的第三方jar或者应用有太多的class文件而恰好MaxPermSize设置较小,超出了也会导致...

2009-02-26 16:12:35 88

原创 定制Grails的web.xml

Grails的web.xml是自动生成的。如果需要修改web.xml该怎么办? 先说一下grails的web.xml的产生过程 Grails的web.xml是在Package.groovy的generateWebXml target中生成的。可以在%Grails_Home%/scripts下找到它。其实在运行grails war时也是先走的这一步。 在generateWebXml里 1.先判断有没...

2008-08-24 01:23:59 115

原创 gsp修改自动生效

  gsp在tomcat下部署后,每次更改都需要重新启动tomcat才能生效 之前大家也一直在问这个问题,这次终于从Graeme Rocher哪里知道了一个方法 设置 grails.gsp.enable.reload=true 就可以了,哈哈 不过这样会影响性能   原文: http://markmail.org/message/3eqhbi7lg3p5c3gp#query:+page:1+mi...

2008-08-13 23:01:18 262

原创 get a resource from the servletContext or applicat

To get the ApplicationContext, have your service implement ApplicationContextAware and declare an 'applicationContext' field. Then from within your service:   def resource = applicationContext.getRe...

2008-08-13 22:52:42 89

原创 在src/groovy中获得domain和service

import org.codehaus.groovy.grails.commons.ApplicationHolder//…def book = ApplicationHolder.application.getClassForName("Book").findByTitle("Groovy in Action")     ----------------------------------...

2008-08-13 22:49:34 136

原创 Premature end of file错误

搜索了一下,java里面也发生这种错误,说是xml输出时的问题 在grails的jira里面看到,这个问题好像是某些浏览器accept头的问题,1.0.4版本已修正这个bug,1.0.3在config.groovy里面   grails.mime.types = [ html: ['text/html','application/xhtml+xml'],xml: ['text/xml', 'app...

2008-08-13 22:12:34 849

原创 Mail Plugin插件使用的问题

按照http://www.grails.org/Mail+Plugin的说明安装此插件,然后再Config.groovy里加入//grails.mail.default.from="[email protected]"grails {   mail {     host = "smtp.gmail.com"     port = 465     username = "youracount@g...

2008-08-11 19:16:06 1141

原创 webflow不能在wap中使用

主要是事件触发的html控件在wml里<a href="" event="e">可以使用但wml没有submit,只有<go href="" method="post">,不知道webflow里使用submit的原理是什么,网上没搜到...

2008-08-11 19:15:07 86

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除