play framework使用的是yml配置方式,它比xml等傳統(tǒng)配置方式更加先進和方便
例子
Tag(play):
name: Play
Tag(architecture):
name: Architecture
Tag(test):
name:
Test Tag(mvc):
name: MVC
Post(jeffPost):
title: The MVC application
postedAt: 2009-06-06
author: jeff
tags:
- play
- architecture
- mvc
content: >
A Play
它以縮進替代xml中的尖括號,- 代表連續(xù) 如Post的tags就是一個集合
yml可以作為測試的原始數(shù)據(jù)輸入,或application的初始化數(shù)據(jù).