如何解决“没有找到:对象anorm”玩2.4.3 [英] How to Resolve 'not found: object anorm' for play 2.4.3

查看:250
本文介绍了如何解决“没有找到:对象anorm”玩2.4.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用播放2.4.3 ,当我导入anorm像

I'm using play 2.4.3, When I import anorm like

import anorm._
import anorm。 SqlParser ._

import anorm._ import anorm.SqlParser._

这将在IDE中显示以下错误消息...

this brings up the error message below in the IDE...


未找到:对象anorm

not found: object anorm

但是我的项目将执行(不抛出任何错误)。

But my project will execute (without throwing any error).

依赖关系

libraryDependencies ++= Seq("com.typesafe.play" %% "anorm" % "2.3.6")

strong>

Editor


eclipse Luna

eclipse Luna

scala版本


scalaVersion:=2.11.6

scalaVersion := "2.11.6"

Activator


版本1.3.6

Version 1.3.6

操作系统


Windows 8

Windows 8


推荐答案

您的导入不正确 - 应该是:

Your imports are incorrect - they should be:

import anorm._
import anorm.SqlParser._

请注意第二次导入时的差异。

Note the difference on the second import.

HTH

这篇关于如何解决“没有找到:对象anorm”玩2.4.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆