天天看点

grails创建第一个属于你的项目实战(图文)

1、下载工具:

[url]http://www.springsource.org/downloads/sts-ggts[/url]

直接地址:[url]spring-tool-suite-3.0.0.RELEASE-e4.2-win32-installer.exe[/url]

2、安装并打开

[img]http://dl.iteye.com/upload/attachment/0073/1831/981c7bef-acd7-3c35-9bc1-48769ec5ac0d.jpg[/img]

3、安装groovy和grails插件

[img]http://dl.iteye.com/upload/attachment/0073/1833/fbef942d-2530-3fd0-8956-f6704e1e83ff.jpg[/img]

4、创建grails项目

[img]http://dl.iteye.com/upload/attachment/0073/1839/09605aa0-1041-3656-8313-dbb004bbfec8.jpg[/img]

5、添加所需要的文件

[img]http://dl.iteye.com/upload/attachment/0073/1837/9606fcc3-4ff1-3daa-a4af-420ef5d973a6.jpg[/img]

6、添加项目到服务器

[img]http://dl.iteye.com/upload/attachment/0073/1839/09605aa0-1041-3656-8313-dbb004bbfec8.jpg[/img]

7、运行服务器

[img]http://dl.iteye.com/upload/attachment/0073/1841/fcf7e7c3-8bfb-34aa-a447-f75e8f88f77b.jpg[/img]

[url]http://localhost:8080/com.grails.happy.book[/url]

8、运行成功后的页面

[img]http://dl.iteye.com/upload/attachment/0073/1843/c00ec8cf-8b61-3d57-8cce-59f6976f2e4e.jpg[/img][img]http://dl.iteye.com/upload/attachment/0073/1845/c6c29909-4f89-379f-b3c3-d1fc30775fa9.jpg[/img]

9、项目下载:[url]http://dl.iteye.com/topics/download/4654232e-2688-3dad-8b73-d0bfe887f1b6[/url]