How to configure FS database in playframework 2.0?

情到浓时终转凉″ 提交于 2019-12-11 00:50:27

问题


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


回答1:


Instead of using

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

you should be able to just use

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

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



来源:https://stackoverflow.com/questions/10150287/how-to-configure-fs-database-in-playframework-2-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!