247行的博客系统

跟着Scott Davis看了一下Grails

247行代码就可以实现一个完整的博客系统!

看来javaeye用rails创业, 从成本来说真是性价比超高。

 

D:\myeclips-workbench\blogito>grails stats
Welcome to Grails 1.1.1 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: C:\grails-1.1.1

Base Directory: D:\myeclips-workbench\blogito
Running script C:\grails-1.1.1\scripts\Stats.groov
Environment set to development

        +----------------------+-------+-------+
        | Name                 | Files |  LOC  |
        +----------------------+-------+-------+
        | Controllers          |     2 |   112 |
        | Domain Classes       |     2 |    38 |
        | Tag Libraries        |     3 |    59 |
        | Unit Tests           |     7 |    28 |
        | Integration Tests    |     1 |    10 |
        +----------------------+-------+-------+
        | Totals               |    15 |   247 |
        +----------------------+-------+-------+

 

运行前需要安装searchable 插件(用到了Apache Lucene 搜索引擎):

grails install-plugin searchable

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值