Scala + Play2.0 → Play2.4 SimpleResultについて OSX EI Capitan 10.11 Scala 2.11.7 ScalaIDE Build id: 4.2.0-vfinal-2015-09-25T11:10:29Z-Typesafe Play 2.4.3 Scala+Play ScalaPlay 2.0Web4 < def sample1 = Action { SimpleResult( header = ResponseHeader(200, Map(CONTENT_TYPE -> "text/html")), body = Enumerator(views.html.index("Sample Controller#sample1")) ) } "not found: value SimpleResult" "type mismatch; found : play.twirl.api.HtmlFormat.Appendable (which expands to) play.twirl.api.Html required: Array[Byte]" "not found: ”SimpleResult → Result ”type mismatch; found : ” def sample1 = Action { //SimpleResultResult Result( header = ResponseHeader(200, Map(CONTENT_TYPE -> "text/html")), body = Enumerator("Sample Controlle#sample1".getBytes) //.getBytes ) } SimpleResultResult
`SimpleResult` Play 2.3 `Result` Play 2.3 Migration Guide `SimpleResult` `Result`
xcX3v84RxoQ-4GxG32940ukFUIEgYdPy
3a1d8282160c91c61063ea8ad709e38b
Stop