サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
コーヒー沼
www.playframework.com
HTTP programming Actions, Controllers and Results HTTP Routing Manipulating HTTP results Session and Flash scopes Body parsers Actions composition Content negotiation Handling errors Main concepts Section introduction Configuration API HTTP programming Asynchronous HTTP programming The Twirl template engine Form submission and validation Working with Json Working with XML Handling file upload Acce
You are viewing the documentation for the 2.9.x release series. The latest stable release series is 3.0.x. Search Home Play releases Play 2.6 Migration Guides §Play 2.6 Migration Guide This is a guide for migrating from Play 2.5 to Play 2.6. If you need to migrate from an earlier version of Play then you must first follow the Play 2.5 Migration Guide. §How to migrate The following steps need to be
You are viewing the documentation for the 2.9.x release series. The latest stable release series is 3.0.x. Search Home Play releases Play 2.6 §What’s new in Play 2.6 This page highlights the new features of Play 2.6. If you want to learn about the changes you need to make when you migrate to Play 2.6, check out the Play 2.6 Migration Guide. §Scala 2.12 support Play 2.6 is the first release of Play
You are viewing the documentation for Play 1. The documentation for Play 2 is here. アプリケーションの本番稼動アプリケーションを本番環境向けに最適化するシンプルな tips を紹介します。 本番稼動向け application.conf の設定まず最初に、本番モードを指定するベストな方法は、本番環境のフレームワークに特別な ID を与えることです。例として production という ID にしてみましょう。どのようにして ID を与えるかについては、複数環境用 application.conf の管理 を参照してください。 フレームワークを本番モードに設定する:%production.application.mode=prod このモードでは、フレームワークは全ての Java ソースとテンプレートをプリ
You are viewing the documentation for the 2.2.x release series. The latest stable release series is 2.4.x. Search §スタンドアロンで実行可能なアプリケーションのビルド §dist タスクを使う Play アプリケーションをデプロイする最も簡単な方法は、(git などを使って) ソースコードをサーバに保存して、 play start もしくは play stage のどちらかでアプリケーションを起動することです。 その他に、Play のフレームワークに依存しないアプリケーションのバイナリをビルドしたいこともあるでしょう。その場合は、 dist タスクが利用できます。 Play コンソールで、 dist を入力してみましょう。 [My first application] $ di
You are viewing the documentation for the 2.3.x release series. The latest stable release series is 2.4.x. Search §フィルタの利用 フィルターとは、アプリケーションへ送られてきたリクエストをインターセプト(傍受)したり、リクエストまたはレスポンスに変換処理を行うことを可能にするコンポーネントです。フィルターを使うと、アプリケーションを横断する関心事をうまく実装することができます。フィルターは Filter トレイトを継承して実装され、 Global へ追加されることで機能します。次の例では、全てのアクションの実行結果のログをとるアクセスログフィルターを実装しています。 import play.api.Logger import play.api.mvc._ object Acc
Testing your application Testing your Application Testing with ScalaTest Writing functional tests with ScalaTest Testing with specs2 Writing functional tests with specs2 Testing with Guice Testing with compile-time Dependency Injection Testing with databases Testing web service clients Main concepts Section introduction Configuration API HTTP programming Asynchronous HTTP programming The Twirl tem
You are viewing the documentation for Play 1. The documentation for Play 2 is here. ドキュメントPlay framework 1.2.5 ドキュメントへようこそ。バージョン 1.2.5 リリースノート を確認してください。 はじめようPlay framework のはじめの一歩を学ぶ楽しい 5 分間です。 Play framework の概要動画を観てみようPlay でできる 5 つのすごいこと利便性 - 細部は機能と同様に重要よくある質問インストールガイドお好みの IDE を設定しようはじめてのアプリケーション - 'Hello World' チュートリアルサンプルアプリケーションチュートリアル - リアルな Play アプリケーションを一歩ずつ作成するガイド'Yet Another Blog Engin
You are viewing the documentation for the 2.9.x release series. The latest stable release series is 3.0.x. Search Home Working with Play Common topics The build system §Improving Compilation Times Compilation speed can be improved by following some guidelines that are also good engineering practice: §Use subprojects/modularize This is something like bulkheads for incremental compilation in additio
You are viewing the documentation for Play 1. The documentation for Play 2 is here. JPA 永続化Play は、JPA エンティティの管理を容易にするとても便利な一連のヘルパを提供します。 いつでも素の JPA API に立ち返ることができることに 注意 してください。 JPA エンティティマネージャの開始Playは、 @javax.persistence.Entity アノテーションで注釈されたクラスをひとつ以上見つけた場合、自動的に Hibernate エンティティマネージャを開始します。とは言え、JDBC データソースを正しく設定していない場合、エンティティマネージャの開始は失敗してしまうので、確実に設定してください。 JPA エンティティマネージャの取得JPA エンティティマネージャが開始されている
You are viewing the documentation for the 2.9.x release series. The latest stable release series is 3.0.x. Search Home Working with Play Common topics Configuration §The Application Secret Play uses a secret key for a number of things, including: Signing session cookies and CSRF tokens Built in encryption utilities It is configured in application.conf, with the property name play.http.secret.key,
Asynchronous HTTP programming Asynchronous results Streaming HTTP responses Comet WebSockets Main concepts Section introduction Configuration API HTTP programming Asynchronous HTTP programming The Twirl template engine Form submission and validation Working with Json Working with XML Handling file upload Accessing an SQL database Using the Cache Calling REST APIs with Play WS Integrating with Akka
You are viewing the documentation for the 2.9.x release series. The latest stable release series is 3.0.x. Search Home §Play modules Play uses public modules to augment built-in functionality. To create your own public module or to migrate from a play.api.Plugin, please see ScalaPlayModules or JavaPlayModules. §API hosting§iheartradio/play-swagger Website: https://github.com/iheartradio/play-swagg
§How to migrate (by API) The following section gives an overview of how to migrate code that uses different parts of the API. §Migrating chunked results (chunked, Results.Chunked) In Play 2.4 you would create chunked results in Scala with an Enumerator and in Java with a Results.Chunked object. In Play 2.5 these parts of the API are still available, but they have been deprecated. If you choose to
You are viewing the documentation for the 2.2.x release series. The latest stable release series is 2.4.x. Search §機能テストを書く Play は機能テストを支援するいくつかのクラスとメソッドを提供しています。それらのほとんどは play.api.test パッケージか、Helpers オブジェクトのいずれかの中から見つけることができます。 以下をインポートすることで、これらのメソッドとクラスを追加することができます: import play.api.test._ import play.api.test.Helpers._ §FakeApplication Play はしばしば、play.api.Play.current が提供する Application をコンテキストとし
Integrating with Akka Integrating with Akka Main concepts Section contents Configuration API HTTP programming Asynchronous HTTP programming The Twirl template engine Form submission and validation Working with Json Working with XML Handling file upload Accessing an SQL database Using the Cache Calling REST APIs with Play WS Integrating with Akka Internationalization with Messages Dependency Inject
You are viewing the documentation for the 2.3.x release series. The latest stable release series is 2.4.x. Search §Anorm によるシンプルな SQL データアクセス Play には Anorm と呼ばれるシンプルなデータアクセスレイヤーが同梱されています。Anorm はデータベースとやり取りするのに SQL をそのまま利用すると同時に、結果のデータセットをパースしたり変換するための API を提供します。 Anorm は ORM (Object Relational Mapper) ではない 以下のドキュメントでは、MySQL world サンプルデータベース を利用します。 If you want to enable it for your application, fo
You are viewing the documentation for the 2.2.x release series. The latest stable release series is 2.4.x. Search §アプリケーションのグローバル設定 §Global オブジェクト プロジェクト内に Global オブジェクトを定義すると、アプリケーションのグローバル設定を行うことができます。このオブジェクトはルートパッケージに定義される必要があります。 import play.*; public class Global extends GlobalSettings { } §アプリケーションの起動や停止をインターセプトする onStart や onStop 操作をオーバーライドすることで、対応するアプリケーションのライフサイクルイベントの通知を受けることができます。 impo
Using the Cache Using the Cache Main concepts Section contents Configuration API HTTP programming Asynchronous HTTP programming The Twirl template engine Form submission and validation Working with Json Working with XML Handling file upload Accessing an SQL database Using the Cache Calling REST APIs with Play WS Integrating with Akka Internationalization with Messages Dependency Injection Applicat
The Twirl template engine Templates syntax Dependency Injection with Templates Common use cases Custom format Main concepts Section introduction Configuration API HTTP programming Asynchronous HTTP programming The Twirl template engine Form submission and validation Working with Json Working with XML Handling file upload Accessing an SQL database Using the Cache Calling REST APIs with Play WS Inte
Using Slick to access your database Using Play Slick Play Slick migration guide Play Slick advanced topics Play Slick FAQ Accessing an SQL database Accessing an SQL Database Using Slick to access your database Using Anorm to access your database Main concepts Section introduction Configuration API HTTP programming Asynchronous HTTP programming The Twirl template engine Form submission and validati
You are viewing the documentation for the 2.9.x release series. The latest stable release series is 3.0.x. Search Home Play releases Play 2.4 §What’s new in Play 2.4 This page highlights the new features of Play 2.4. If you want learn about the changes you need to make to migrate to Play 2.4, check out the Play 2.4 Migration Guide. §Dependency Injection Play now supports dependency injection out o
You are viewing the documentation for the 2.1.x release series. The latest stable release series is 2.4.x. Search §SQL データベースアクセス §JDBC コネクションプールの構成 Play 2.0 には JDBC コネクションプールを管理するプラグインが同梱されています。これを使って、必要なだけデータベースへの接続設定を書くことができます。 データベースプラグインを有効にするために、conf/application.conf ファイルでコネクションプールの設定を行います。規約によって、デフォルトの JDBC データソースは default と呼ばれ、関連する設定プロパティは db.default.driver と db.default.url でなければなりません。 もし何
You are viewing the documentation for the 2.9.x release series. The latest stable release series is 3.0.x. Search Home Play releases Play 2.4 Migration Guides §Play 2.4 Migration Guide This is a guide for migrating from Play 2.3 to Play 2.4. If you need to migrate from an earlier version of Play then you must first follow the Play 2.3 Migration Guide. As well as the information contained on this p
アプリケーションのデプロイ アプリケーションのデプロイ スタンドアローンパッケージを作成する 本番環境設定 フロントエンド HTTP サーバの設定 HTTPS の設定 クラウドサービスへデプロイする はじめに Play のインストール 新規アプリケーションを作成する Play アプリケーションの構造 Play コンソールを使う 好きな IDE で開発する Play チュートリアル Play で開発する Scala 開発者のための Play Java 開発者のための Play 詳細なトピック ビルドシステム 公開アセットを使う データベース進化の管理 設定 アプリケーションのデプロイ その他のドキュメント Scala Akka sbt Configuration Logback Play を Hack する ソースから Play をビルドする サードパーティツール リポジトリ 課題トラッカ
次のページ
このページを最初にブックマークしてみませんか?
『Play Framework - Build Modern & Scalable Web Apps with Java and Scala』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く