`
casephoen
  • 浏览: 19341 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
一、内存溢出类型1、java.lang.OutOfMemoryError: PermGen space JVM管理两种类型的内存,堆和非堆。堆是给开发人员用的上面说的就是,是在JVM启动时创建;非堆是留给JVM自己用的,用来存放类的信息的。它和堆不同,运行期内GC不会释放 ...
Grails的web.xml是自动生成的。如果需要修改web.xml该怎么办? 先说一下grails的web.xml的产生过程 Grails的web.xml是在Package.groovy的generateWebXml target中生成的。可以在%Grails_Home%/scripts下找到它。其实在运行grails war时也是先走的这一步。 在generateWebXml里 1.先判断有没有config.grails.config.base.webXml属性,如果有,则使用指定的config.grails.config.base.webXml值作为最终的web.xml 2.如果没有con ...
  gsp在tomcat下部署后,每次更改都需要重新启动tomcat才能生效 之前大家也一直在问这个问题,这次终于从Graeme Rocher哪里知道了一个方法 设置 grails.gsp.enable.reload=true 就可以了,哈哈 不过这样会影响性能   原文: http://markmail.org/message/3eqhbi7lg3p5c3gp#query:+page:1+mid:vyzahw2ly6amgziz+state:results
To get the ApplicationContext, have your service implement ApplicationContextAware and declare an 'applicationContext' field. Then from within your service:   def resource = applicationContext.getResource("foo") Accessing the Servlet Context: import org.codehaus.groovy.grails.commons.A ...
import org.codehaus.groovy.grails.commons.ApplicationHolder//…def book = ApplicationHolder.application.getClassForName("Book").findByTitle("Groovy in Action")     ---------------------------------------------------------------------------------------   import org.codehaus.gro ...
搜索了一下,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', 'application/xml'], <--- 注释或删除此行 ... 注释掉后问题得到解决,呵呵 参考:http://jira.codehaus.org/browse/GRAILS-3088
按照http://www.grails.org/Mail+Plugin的说明安装此插件,然后再Config.groovy里加入//grails.mail.default.from="server@yourhost.com"grails {   mail {     host = "smtp.gmail.com"     port = 465     username = "youracount@gmail.com"     password = "yourpassword"     props = ["ma ...
主要是事件触发的html控件在wml里<a href="" event="e">可以使用但wml没有submit,只有<go href="" method="post">,不知道webflow里使用submit的原理是什么,网上没搜到
Global site tag (gtag.js) - Google Analytics