0

我正在尝试将我的电梯应用程序连接到数据库。我有以下代码来执行操作。我已经下载了 lift-mapper_2.9.1 并将其包含到我的应用程序中,并且我在 boot.scala 中给出了以下代码

import net.liftweb.mapper.{DB,Schemifier,DefaultConnectionIdentifier,StandardDBVendor,MapperRules}

class boot{
  def boot{
    ......
    .......
   }
      object Database extends StandardDBVendor(
    Props.get("db.class").openOr("com.mysql.jdbc.Driver"),
    Props.get("db.url").openOr("jdbc:mysql://localhost/scalatest"),
    Props.get("db.user"),
    Props.get("db.pass"))
 }

我已经在 src/main/resources/props/default.props 文件中设置了 db.class 和其他属性。但是这里的第一行显示了一个错误,

  Multiple markers at this line
- bad symbolic reference. A signature in package.class refers to term db in package net.liftweb which is not available. It may be completely 
 missing from the current classpath, or the version on the classpath might be incompatible with the version used when compiling package.class.
- too many arguments for constructor Object: ()Object

我不知道我做错了什么。可以给个建议。提前谢谢。

4

0 回答 0