开发者

ReCaptcha.scala.scala:114: not found: value compact

开发者 https://www.devze.com 2023-03-15 12:57 出处:网络
I have the following code: http://www.assembla.com/spaces/liftweb/wiki/ReCaptcha and compile the project(sbt), send me the following message开发者_C百科:

I have the following code:

http://www.assembla.com/spaces/liftweb/wiki/ReCaptcha

and compile the project(sbt), send me the following message开发者_C百科:

src/main/scala/code/model/ReCaptcha.scala.scala:114: not found: value compact

[error] val RecaptchaOptions = compact(render(reCaptchaOptions))

any suggestions please :(


Compact comes from lift-json I would imagine as thats the only place I recall that method being defined. Try adding this import:

  import net.liftweb.json.JsonAST._

In addition, you may want to refer to the lift-json documentation for usage on compact(...)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号