使用Play-1.2.5链接和查询MySql
我使用的是MySql和Play-1.2.5,我在application.conf中使用了以下几行代码将两者链接起来使用Play-1.2.5链接和查询MySql,mysql,sql,playframework,playframework-1.x,Mysql,Sql,Playframework,Playframework 1.x,我使用的是MySql和Play-1.2.5,我在application.conf中使用了以下几行代码将两者链接起来 # If you need a full JDBC configuration use the following : db.default.driver=com.mysql.jdbc.Driver db.default.user="root" db.default.password="pass" db.default.url="mysql://localhost:3306/sam
# If you need a full JDBC configuration use the following :
db.default.driver=com.mysql.jdbc.Driver
db.default.user="root"
db.default.password="pass"
db.default.url="mysql://localhost:3306/sample"
好的,如果我错了,请纠正我,Play-1.2.5不提供任何链接和查询数据库的文档
现在,
提前感谢。关于这个主题有很多文档和教程。
MySQL与JPA一起开箱即用。
对于morphia和MongoDB,您可能需要使用一个模块