第4回 g* ワークショップ はじめてみよう! Grailsプラグイン

1,146 views
1,072 views

Published on

第4回 g* ワークショップ
はじめてみよう! Grailsプラグイン

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,146
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

第4回 g* ワークショップ はじめてみよう! Grailsプラグイン

  1. 1. 2009/07/22 @Yokohama def speaker = new Cast(name:”T.Yamamoto”,version:”G*4-2009-07-22”)
  2. 2. ( ) Web 90%Grails JGGUG( ) Grails 9-11 Grails Acegi Plugin http://d.hatena.ne.jp/mottsnite/
  3. 3. Groovy,Java,Spring,Hibernate • •http://grails.org/Download • •export GRAILS_HOME=/opt/grails-1.1.1 •export PATH=$PATH:$GRAILS_HOME/bin
  4. 4. def doWithWebDescriptor = { webXml -> def servletElement = webXml.'servlet' def lastServlet = servletElement[servletElement.size()-1] lastServlet + { 'servlet' { 'servlet-name'("simpleResource") 'servlet-class'("SimpleResource") 'load-on-startup'("1") } } def mappingElement = webXml.'servlet-mapping' def lastMapping = mappingElement[mappingElement.size()-1] lastMapping + { 'servlet-mapping' { 'servlet-name'("simpleResource") 'url-pattern'("/resources/*") } } }
  5. 5. def doWithSpring = { javascriptService(net.xmldo.grails.plugins.rhino.services.RhinoService){bean-> bean.autowire = true } }
  6. 6. Grails/Groovy http://www.jggug.org/

×