今天新建一个play2.3.3的工程
心血高啊,在routes文件中给不同Controller加上了中文注释,结果就报如下错误:
[error] IO error while decoding D:\devproj\play\mango23\target\scala-2.11\src_managed\main\routes_reverseRouting.scala with UTF-8
[error] Please try specifying another one using the -encoding option
[error] IO error while decoding D:\devproj\play\mango23\target\scala-2.11\src_managed\main\routes_routing.scala with UTF-8
[error] Please try specifying another one using the -encoding option
[error] two errors found
[error] (compile:compile) Compilation failed
[error] application -
Google好一阵未果,最后只好将所有 中文改为英文,立马编译通过,特此记录
如果再出现类似错误请 注意 文件编码格式和注释中是否有中文编码