如何在playframework 2.0中配置FS数据库? [英] How to configure FS database in playframework 2.0?

查看:133
本文介绍了如何在playframework 2.0中配置FS数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能?似乎很容易做到在框架的第一个版本。

is it possible at all? Seems easy to be done in the first version of the framework.

推荐答案

而不是使用

# Default database configuration
db.default.driver=org.h2.Driver
db.default.url="jdbc:h2:mem:play"

您应该只能使用

# FS database configuration
db.default.driver=org.h2.Driver
db.default.url="jdbc:h2:playdb"

这将在当前工作目录中创建文件。有关详情,请参阅 H2 CheatSheet

This will create the file in the current working directory. See the H2 CheatSheet for more information

这篇关于如何在playframework 2.0中配置FS数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆