使用Play Framework连接到Oracle DB失败

时间:2014-02-06 13:02:37

标签: oracle jdbc playframework models ebean

当我尝试将我的oracle数据库连接到Play上的应用程序时,我有这个异常!框架2.1.5(问题涉及ebean.default =“models。*”行):

Configuration error

path parameter: Invalid path ' - could not find datasource for default': Token not allowed in path expression: '-' (Invalid number: '-') (you can double-quote this token if you really want it here)
In C:\MyApps\oracleCrud2\conf\application.conf at line 54.
51# You can declare as many Ebean servers as you want.
52# By convention, the default server is named `default`
53#
54 ebean.default="models.*"
55
56# Logger
57# ~~~~~
58# You can also configure logback (http://logback.qos.ch/), by providing a logger.xml file in the conf directory . 

一些帮助将不胜感激:)

1 个答案:

答案 0 :(得分:0)

我正在回答我自己的问题。这是application.conf的工作部分,它处理与Play的Oracle连接! :

  db.default.driver=oracle.jdbc.driver.OracleDriver
  db.default.url="jdbc:oracle:thin:@//127.0.0.1:1521/xe"
  db.default.user=play
  db.default.password=play

希望我帮忙,有一个好的!

-Ramzi

相关问题