
play framework2.0.4
wang_jun_233
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
play framework2学习之旅<2.1>Actions, Controllers and Results
Actions, Controllers and ResultsWhat is an Action?Most of the requests received by a Play application are handled by an Action.An action is basically a Java method that processes the req翻译 2013-01-07 22:54:27 · 1015 阅读 · 0 评论 -
play framework2学习之旅<2.2>HTTP routing
The built-in HTTP routerThe router is the component that translates each incoming HTTP request to an action call (a static, public method in a controller class).第一句话很重要!在学习新知识之前,第一句话往往是总的概括!在前翻译 2013-01-07 23:33:22 · 1240 阅读 · 0 评论 -
play framework2学习之旅<1>
1. 下载play framework2(我下载的是2.0.4)http://www.playframework.org/-------->download2.解压(假设我的路径是E:\opensource\play-2.0.4)3.配置环境变量:path中添加上述解压路径“;E:\opensource\play-2.0.4”(与前面的用分号隔开即可)前提是你的系统原创 2013-01-04 21:02:09 · 786 阅读 · 0 评论 -
play framework2学习之旅<2.3>Manipulating the response
Manipulating the response(处理响应)这一节的内容比较简单,所以简单浏览一遍即可,大概留个印象,估计暂时不会用到,在处理文件上传下载时应该会用到一些,到时候再查哈,所以等遇到了再去查即可,另一种哲学观:很少用&能查到的内容,不要背!Changing the default Content-TypeThe result content type is au翻译 2013-01-07 23:48:41 · 951 阅读 · 0 评论 -
play framework2学习之旅<2.4>Session and Flash scopes
Session and Flash scopes(Session和Flash作用域)先问自己,为什么要有session和flash??答案在下面:How it is different in PlayIf you have to keep data across multiple HTTP requests, you can save them in the Session o翻译 2013-01-08 00:14:59 · 3440 阅读 · 0 评论 -
play framework2学习之旅<2.5>Body parsers
Body parsers(body解析器)What is a body parser?(还是那句话,认真读第一段内容介绍!)An HTTP request (at least for those using the POST and PUT operations) contains a body. This body can be formatted with any format翻译 2013-01-08 00:36:57 · 2302 阅读 · 0 评论 -
play framework2.0.*打war包
首先,使用过play1.*版本的开发者应该都知道要将play项目打包发布,可以直接使用play war命令,但是到了2.*以上的版本,已不再支持play war来打包项目。这里将原因解释如下:They haven't done this because the Servlet3.1spec has not been released yet. Play 2 supports some feat原创 2013-03-28 10:16:10 · 3385 阅读 · 1 评论 -
play2.0文件下载
最近在做项目使需要将做好的excel表格提供下载,废话不多说,贴代码: public static Result view() { String filename="sims.xls"; File file = new File(Play.application().path().getAbsolutePath() + "/public/images/" + filename原创 2013-04-04 06:30:11 · 2275 阅读 · 0 评论 -
我所知道的就近原则
1.在java中,要是定义两个同名方法,但是一个是可变参数的,一个的参数是固定的,当你在调用时,他会自动选择最匹配的一个;public void function(int num,String str){ //.... }public void function(int num,String...strs){ //....}main{ function(原创 2013-10-08 22:27:04 · 1047 阅读 · 0 评论