PlayFramework SQL数据库错误 [英] PlayFramework SQL Database error
本文介绍了PlayFramework SQL数据库错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用Play Framework访问SQL数据库,我的application.conf包含:
I am trying to use access SQL DataBase with Play Framework, my application.conf contains :
db.default.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
db.default.url="jdbc:jtds:sqlserver://server_ip:1433/db-name"
db.default.user="user"
db.default.password="password"
我在lib文件夹中有jtds jar文件,播放依赖项添加到我的Build.sbt文件
我仍然遇到以下错误:无法连接数据库[默认]。
任何人都可以提供帮助。
and i have the jtds jar file in the lib folder with the play dependencies add to my Build.sbt file
and i still got the following error: Cannot connect to database [default].
can anyone help.
推荐答案
这篇关于PlayFramework SQL数据库错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文