play framework 2.0 使用 mysql
db=mysql
db.default.driver=com.mysql.jdbc.Driver
db.default.url="jdbc:mysql://localhost/test"
db.default.user=user
db.default.password=pass
--------------------------------------------------------------
http://repo.typesafe.com/typesafe/releases/mysql 下载 相关 文件 放到 /home/diego/play/Play20/repository/local/ 下
同时 拷贝 mysql-connector-java-5.1.18.jar 到工程中
-----------------------------------------------------------
/path/to/webapp/project/Build.scala
val appDependencies = Seq(
"mysql" % "mysql-connector-java" % "5.1.18"
)
参考:
play framework 2.0 使用 mysql_kangjun_百度空间
http://hi.baidu.com/kangjun118/item/d0ea49eb15d7a32a87d9de6b
play framework 2.1.2中文编码_kangjun_百度空间
http://hi.baidu.com/kangjun118/item/88e17d18284fe6ccbe9042e1
play!frame相关最新内容_百度空间
http://hi.baidu.com/tag/play%21frame/feeds
Play!连接MySQL配置 - c4fun - ITeye技术网站 http://c4fun.iteye.com/blog/506959