playframework-2.4

    0热度

    1回答

    我想执行一个项目,其中堆栈是与java的playframework的,我能够通过调用sbt test运行测试,但我想在eclipse IDE中运行junits,但一直显示错误,因为模型不是增强。 我看到有一个用于eclipse的插件,但它不适用于我。你们是否知道在eclipse中完成运行这个junit? 作为一个不是我是一个noobie使用playframework。 在此先感谢。

    0热度

    2回答

    我在本地服务器的CSV文件,我使用下面的代码在剧中响应发送此文件: def index = Action { Ok.sendFile(new java.io.File("fileToServe.csv")) } 但CSV文件可高达100GB 。所以我想在发送它到播放应用程序响应之前压缩这个CSV文件。在游戏中,我发现这个link添加了过滤器,应该对这些响应进行gzip压缩。我尝试过

    1热度

    1回答

    如何在播放ws客户端中处理超时异常?当我指定RequestTimeout和过程流时,即使有异常,CompletionStage也会成功完成。 查看下面的示例。 代码(从here拍摄): // Make the request, which should timeout CompletionStage<StreamedResponse> futureResponse = ws.url("

    0热度

    1回答

    我在播放应用程序响应中的文件。当客户端下载文件时,我正在从本地服务器清除文件。我正在使用以下代码实现此目的: val fileToServe = TemporaryFile(new File(fileName)) Ok.sendFile(fileToServe.file, onClose =() => { fileToServe.clean }) 但是,当客户端断开连接时,临时文件仍保留在本

    0热度

    1回答

    当我尝试运行通过运行“激活器dist”命令创建的bat文件时,出现以下异常。 Oops, cannot start the server. com.google.inject.CreationException: Unable to create injector, see the followin g errors: 1) Error injecting cons

    2热度

    1回答

    我试图将这个代码转换为使用Play版本2.4到当前版本(2.6),并且我遇到了一些问题,因为我仍然是一个noob斯卡拉。 def wsWeatherIntervals = WebSocket.using[String] { request => val url = "http://api.openweathermap.org/data/2.5/weather?q=Amsterd

    1热度

    1回答

    我使用打2.4我的打法应用程序工作正常,然后我需要的时候我做activator run安装这些组件后,安装像grauntbowerrubycompass一些UI组件reload clean compile后,打本地主机:9000这需要近半个小时或更长时间加载该页面,并在控制台上有什么不同之处 --- (Running the application, auto-reloading is enabl

    2热度

    1回答

    我是新来斯卡拉,刚刚安装IJ(intelliJIDEA 2017年2月4日版) 但是在建立项目得到如下错误后: enter code here SBT 'Gettingstarted' project refresh failed Error:Error:Error while importing SBT project:<br/>...<br/><pre>at sb

    3热度

    1回答

    我想一些PathProperties适用于我Finders,但我不断收到此错误: [ClassCastException异常:java.util.ArrayList中不能转换为com.avaje.ebean.bean .BeanCollection] 当我在我的PathProperties一个List<...>称为像这样它只发生: PathProperties pathProperties = P

    0热度

    1回答

    传递参数值,我有这样的代码 class UserController @Inject() (var factory:FactoryHandler) extends Controller { } FactoryHandler.scala class FactoryHandler(s:String) { } 我如何可以通过“S”在UserController中参数的值playframewo