Thursday, 10 November 2016

SCALE 2.12 + JAVA 8

I can confirm I can now use SCALA 2.12 with JAVA 8 libs ... :-) This piece of code, using http://sparkjava.com/ I could not do before, now can:
package demo1

import spark.Spark.get

object MicroService {
  def main(args: Array[String]): Unit = {
    get("/hello", (req, res) => "Hello World")
  }
}
Nice!

No comments:

Blog Archive