问题
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