Mysql 使用映射程序从lift应用程序连接数据库时出错

Mysql 使用映射程序从lift应用程序连接数据库时出错,mysql,database,scala,lift,mapper,Mysql,Database,Scala,Lift,Mapper,我正在尝试将我的lift应用程序连接到数据库。我有下面的代码来做这个操作。我已经下载了lift-mapper_2.9.1并将其包含到我的应用程序中,我在boot.scala中给出了以下代码 import net.liftweb.mapper.{DB,Schemifier,DefaultConnectionIdentifier,StandardDBVendor,MapperRules} class boot{ def boot{ ...... ....... }

我正在尝试将我的lift应用程序连接到数据库。我有下面的代码来做这个操作。我已经下载了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

我不知道我做错了什么。谁能给我一个建议吗。thanx提前。

这不是对所问问题的回答,但试着从一个简单的应用程序开始,一个一个地添加更改:例如,使用StandardDBVendor的主要方法是使用一个“新”关键字创建它,而不是将它扩展为一个对象:我下载的同一个简单应用程序,并尝试进行更改。在这一点上,我面临着这个问题。我做了与您在第二个链接中提供的相同的事情。但仍然显示相同的错误。这是编译错误吗?到底是什么文字?我们需要更多的信息来帮助…是的。这是一个编译错误。我在问题中提到的文本在这一行以多个标记开始。(我正在使用EclipseIDE)