传送门 https://stackoverflow.com/questions/8522149/eclipse-not-recognizing-scala-code
还是 直接用eclipse的 scala IDE吧