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