摘要:Play applications can be deployed virtually anywhere: inside Servlet containers, as standalone servers, in Google Application Engine, Stack, a Cloud, ...
阅读全文
摘要:Here some simple tips to optimize your application for production.Configure your application.confFirst off, the best way to specify production mode is...
阅读全文
摘要:When you work in a team, different developers will use different configuration keys in theirapplication.conf. For example, the log level, some databas...
阅读全文
摘要:When you use a relational database, you need a way to track and organize your database schema evolutions. Typically there are several situation where ...
阅读全文
摘要:The Play logger is built onLog4j. Since most Java libraries use Log4j or a wrapper able to use Log4j as a backend, you can easily configure logging th...
阅读全文
摘要:Play’s dependency management system allows you to express your application’s external dependencies in a singledependencies.ymlfile.A Play application ...
阅读全文
摘要:A Play application can be assembled from several application modules. This allows you to reuse application components across several applications or s...
阅读全文
摘要:Creating automatic test suites for your application is a good way to make it robust. It allows you to work in a very agile way.Play tests are built us...
阅读全文
摘要:To create high-performance systems, sometimes you need to cache data. Play has a cache library and will useMemcachedwhen used in a distributed environ...
阅读全文
摘要:E-mail functionality uses theApache Commons Emaillibrary under the hood. You can use theplay.libs.Mailutility class to send e-mail very easily.A simpl...
阅读全文
摘要:Because Play is a web application framework, most of the application logic is done by controllers responding to HTTP requests.But sometimes you will n...
阅读全文
摘要:Theplay.libspackage contains several useful libraries that will help you to achieve common programming tasks.Most of these libraries are simple helper...
阅读全文
摘要:Play provides a set of very useful helpers to simplify the management of your JPA entities.Notethat you can still go back to the plain JPA API wheneve...
阅读全文
摘要:Validations ensure that the data has certain values or meets specific requirements. You can use validation to verify that your models are correct befo...
阅读全文
摘要:Play has an efficient templating system which allows to dynamically generate HTML, XML, JSON or any text-based formatted document. The template engine...
阅读全文
摘要:The MVC application modelA Play application follows the MVC architectural pattern applied to the web architecture.This pattern splits the application ...
阅读全文
摘要:(三)play之yabe项目【数据模型】博客分类:框架@play framework创建项目play new yabeWhat is the application name? [yabe]Blog Engineplay eclipsify yabeplay run yabeEclipse引入项目f...
阅读全文
摘要:持续更新中:(1)按照降序查询:List entities= Entity.find("order by id desc").fetch(2);(2)错误验证:if (validation.hasErrors()) {renderText(validation.errors().get(0).mes...
阅读全文
摘要:Play 框架是一个完整的Web应用开发框架,覆盖了Web应用开发的各个方面。Play 框架在设计的时候借鉴了流行的 Ruby on Rails 和 Grails 等框架,又有自己独有的优势。使用 Play 框架可以方便和高效的开发出 Java Web 应用。通过 Play 框架提供的命令行工具,可...
阅读全文
摘要:playframework中多附件上传注意事项2013年09月24日play暂无评论//play版本问题经确认,1.0.3.2版本下控制器中方法参数 List files 上传不同文件,获取到的都是第一个文件,坑爹啊,反正升级到1.2.3就没这个问题了.//特容易忘记的关键就是这个enctype,附...
阅读全文