鍘熷洜鏄痝rails寮鍙戠殑棰嗗鎰熻浣跨敤Tomcat鑳戒粠鍐呴儴鐨凾omcat寮鍙戜漢鍛樺摢閲岃幏寰楁洿濂界殑”鏈嶅姟“銆傛垜鐚滄祴錛屼粬浠妸Grails鐨勭敤鎴烽┍璧跺埌鏌愪竴涓鉤鍙幫紝浠ヨSpringSource鑳芥洿濂界殑閿鍞粬浠殑鎶鏈敮鎸佹湇鍔°傚嚑騫村墠鎴戜滑鐪嬪埌浜嗙浉鍚岀殑浜嬫儏錛孞Boss 闆囦劍浜嗕竴涓媡omcat寮鍙戜漢鍛樺悗鎶奐etty鎻愬嚭鎴愪簡Tomcat錛屽茍鏈緇堝拰Mort Bay杈炬垚浜嗗晢涓氬悎鍚屻?寰堥仐鎲撅紝榪欎簺鍟嗕笟鍗忚瀵規(guī)妧鏈夋嫨鏈夊姝ゅぇ鐨勫獎鍝嶏紝褰撶浉鍚岀殑鏄紝涓浜涘熀紜緇撴瀯鐨勫伐紼嬩篃姝h仛闆嗗埌涔焌pplication server 涓轟腑蹇冪殑闃熶紞閲屾潵銆?
1E:\Groovy\projects\hello>grails create-controller hello 2 3Welcome to Grails 1.0.4 - http://grails.org/ 4Licensed under Apache Standard License 2.0 5Grails home is set to: E:\Groovy\grails-1.0.4 6 7Base Directory: E:\Groovy\projects\hello 8Note: No plugin scripts found 9Running script E:\Groovy\grails-1.0.4\scripts\CreateController.groovy 10Environment set to development 11[copy] Copying 1 file to E:\Groovy\projects\hello\grails-app\controllers 12Created Controller for Hello 13[mkdir] Created dir: E:\Groovy\projects\hello\grails-app\views\hello 14[copy] Copying 1 file to E:\Groovy\projects\hello\test\integration 15Created ControllerTests for Hello
1E:\Groovy\projects\hello>grails run-app 2 3Welcome to Grails 1.0.4 - http://grails.org/ 4Licensed under Apache Standard License 2.0 5Grails home is set to: E:\Groovy\grails-1.0.4 6 7Base Directory: E:\Groovy\projects\hello 8Note: No plugin scripts found 9Running script E:\Groovy\grails-1.0.4\scripts\RunApp.groovy 10Environment set to development 11[groovyc] Compiling 7 source files to C:\Documents and Settings\Administrator\.grails\1.0.4\projects\hello\classes 12[native2ascii] Converting 11 files from E:\Groovy\projects\hello\grails-app\i18n to C:\Documents and Settings\Administrator\.grails\1.0.4\projects\hello\resources\grails-app\i18n 13[copy] Copying 1 file to C:\Documents and Settings\Administrator\.grails\1.0.4\projects\hello\classes 14[copy] Copying 1 file to C:\Documents and Settings\Administrator\.grails\1.0.4\projects\hello\resources 15[copy] Copying 1 file to C:\Documents and Settings\Administrator\.grails\1.0.4\projects\hello 16Running Grails application.. 172009-03-1220:00:01.183::INFO: Logging to STDERR via org.mortbay.log.StdErrLog 182009-03-1220:00:01.402::INFO: jetty-6.1.12 192009-03-1220:00:02.652::INFO: No Transaction manager found - if your webapp requires one, please configure one. 202009-03-1220:00:02.308:/hello:INFO: Set web app root system property: 'hello-development-0.1' =[E:\Groovy\projects\hello\web-app] 212009-03-1220:00:02.308:/hello:INFO: Initializing log4j from [file:C:\Documents and Settings\Administrator/.grails/1.0.4/projects/hello/resources/log4j.properties] 222009-03-1220:00:02.340:/hello:INFO: Initializing Spring root WebApplicationContext 23[0] spring.GrailsWebApplicationContext Refreshing org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@396c7: display name [org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@396c7]; startup date [Thu Mar 12 20:00:05 CST 2009]; parent: org.springframework.web.context.support.XmlWebApplicationContext@1e7c609 24[0] spring.GrailsWebApplicationContext Bean factory for application context [org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@396c7]: org.springframework.beans.factory.support.DefaultListableBeanFactory@c4c05 252009-03-1220:00:08.179:/hello:INFO: Initializing Spring FrameworkServlet 'grails' 262009-03-1220:00:09.445::INFO: Started SelectChannelConnector@0.0.0.0:8080 27Server running. Browse to http://localhost:8080/hello
1E:\Groovy\projects>grails create-app hello 2 3Welcome to Grails 1.0.4 - http://grails.org/ 4Licensed under Apache Standard License 2.0 5Grails home is set to: E:\Groovy\grails-1.0.4 6 7Base Directory: E:\Groovy\projects 8Note: No plugin scripts found 9Running script E:\Groovy\grails-1.0.4\scripts\CreateApp.groovy 10Environment set to development 11[mkdir] Created dir: E:\Groovy\projects\hello\src 12[mkdir] Created dir: E:\Groovy\projects\hello\src\java 13[mkdir] Created dir: E:\Groovy\projects\hello\src\groovy 14[mkdir] Created dir: E:\Groovy\projects\hello\grails-app 15[mkdir] Created dir: E:\Groovy\projects\hello\grails-app\controllers 16[mkdir] Created dir: E:\Groovy\projects\hello\grails-app\services 17[mkdir] Created dir: E:\Groovy\projects\hello\grails-app\domain 18[mkdir] Created dir: E:\Groovy\projects\hello\grails-app\taglib 19[mkdir] Created dir: E:\Groovy\projects\hello\grails-app\utils 20[mkdir] Created dir: E:\Groovy\projects\hello\grails-app\views 21[mkdir] Created dir: E:\Groovy\projects\hello\grails-app\views\layouts 22[mkdir] Created dir: E:\Groovy\projects\hello\grails-app\i18n 23[mkdir] Created dir: E:\Groovy\projects\hello\grails-app\conf 24[mkdir] Created dir: E:\Groovy\projects\hello\test 25[mkdir] Created dir: E:\Groovy\projects\hello\test\unit 26[mkdir] Created dir: E:\Groovy\projects\hello\test\integration 27[mkdir] Created dir: E:\Groovy\projects\hello\scripts 28[mkdir] Created dir: E:\Groovy\projects\hello\web-app 29[mkdir] Created dir: E:\Groovy\projects\hello\web-app\js 30[mkdir] Created dir: E:\Groovy\projects\hello\web-app\css 31[mkdir] Created dir: E:\Groovy\projects\hello\web-app\images 32[mkdir] Created dir: E:\Groovy\projects\hello\web-app\META-INF 33[mkdir] Created dir: E:\Groovy\projects\hello\lib 34[mkdir] Created dir: E:\Groovy\projects\hello\grails-app\conf\spring 35[mkdir] Created dir: E:\Groovy\projects\hello\grails-app\conf\hibernate 36[propertyfile] Creating new property file: E:\Groovy\projects\hello\application.properties 37[copy] Copying 2 files to E:\Groovy\projects\hello 38[copy] Copied 1 empty directory to 1 empty directory under E:\Groovy\projects\hello 39[copy] Copying 2 files to E:\Groovy\projects\hello\web-app\WEB-INF 40[copy] Copying 5 files to E:\Groovy\projects\hello\web-app\WEB-INF\tld 41[copy] Copying 28 files to E:\Groovy\projects\hello\web-app 42[copy] Copying 18 files to E:\Groovy\projects\hello\grails-app 43[copy] Copying 1 file to E:\Groovy\projects\hello 44[copy] Copying 1 file to E:\Groovy\projects\hello 45[copy] Copying 1 file to E:\Groovy\projects\hello 46[copy] Copying 1 file to E:\Groovy\projects\hello 47[propertyfile] Updating property file: E:\Groovy\projects\hello\application.properties 48Created Grails Application at E:\Groovy\projects/hello