Tag: grails plugin

如何设置Grails和AngularJS部分模板

我正在实现一个项目,使用AngularJS作为前端 ,Grails作为后端。 Angular JS =>单页面应用程序 Grails => REST API将在WebApp本身和第三方应用程序中使用。 这就是我设置项目的方式: web-app | |_____ js ( angular controllers, modules, partial templates.) | |_____ images | |_____ css grails-app | |_____ views ( in here I have my main view, the one I use at the first user request ) 我不喜欢使用Resources Plugin,而是使用Grunt构建自己的前端,然后我只链接布局本身的最终文件。 我在web-app中构建了js文件夹,以包含一个partials文件夹,其中包含要在AngularJS中调用的所有部分模板 这是加载视图的非常标准的角度代码: angular.module(‘myapp’, []). config([‘$routeProvider’, […]

如何在Grails或Java Application中轻松实现“谁在线”?

我正在建立一个grails的社区网站(使用Apache Shiro进行安全和身份validation系统),我想实现“谁在线?”这一function。 这个urlhttp://cksource.com/forums/viewonline.php (如果您没有访问此url,请参阅下面的快照)给出了我想要实现的示例。 我怎么能以最简单的方式做到这一点? Grails或Java中是否存在任何现有解决方案? 谢谢。 快照: Who的快照在线页面http://sofzh.miximages.com/java/www.freeimagehosting.net或在此处查看: http : //www.freeimagehosting.net/image.php?2de8468a86.png