Grails开发过程

没怎么写过博客,Grails更是学习中,写的比较粗,持续改进,希望能把他写的更清楚一些,希望能得到大家批评指正...
  我的初衷是快速搭建一个web项目,但ssh框架配置繁琐,所以选择Grails,但资料较少,只能一点点的搭建。
1.思路:后台:Grails + shiro and 其他插件,前台:bootstrap,数据传输大部分使用ajax
1.Grails + shiro完成。
2.测试模块开发效率,增加一套增删该查的功能;-- 开发模块非常快,比shh快很多,但细节需要各种工具类和组件的支持。
3.准备引入bootstrap
http://www.cnblogs.com/lijingzhi/archive/2013/01/15/2861002.html
--------------------
步骤:
1.shiro安装完成(在线安装,飞在线安装没有试过)--完成
2.mysql数据库连接
3.打包配置文件修改
4.模板功能开启
5.引入bootstrap
6.引入jqGride
7.jfinal --
http://edu.csdn.net/course/detail/1968/30586?auto_start=1
------------------------
收集:
在线源码查看--功能一般--有待查看
http://www.boyunjian.com/javasrc/org.grails/grails-bootstrap/2.3.0.M1/_/grails/util/BuildSettings.groovy
--基本操作
http://www.kuqin.com/grails-doc-1.0/guide/single.html
收集1.
jq gride
http://www.shangxueba.com/jingyan/1906110.html
--------------------------
问题:
grails.offline.mode=false--禁用远程存储库
You have a SNAPSHOT plugin, that means that Grails have to refresh this plugin periodically (once a day).

To disable remote repositories you can use --offline to work offline:

grails --offline run-app

Or disable it completelly by adding into BuildConfig.groovy:

grails.offline.mode=true

See docs for Dependecy Resoultion - http://grails.org/doc/2.0.4/guide/conf.html#3.7.2%20Dependency%20Repositories

P.S. Latest stable version of Shiro plugin is 1.1.4, you could also use it instead of 1.2.0-SNAPSHOT. Stable version will be downloaded only once.
-------------
问题2.如果不需要shiro的权限模型,需要自定义一个登陆权限,最普通的那种
用户表-角色表-权限表

猜你喜欢

转载自javasea.iteye.com/blog/2291486