<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.encoding>UTF-8</maven.compiler.encoding> <java.version>10</java.version> <maven.compiler.source>10</maven.compiler.source> <maven.compiler.target>10</maven.compiler.target> </properties>
在pom文件里添加<java.version>
参考:http://www.manongjc.com/detail/60-zosvylguvmrftur.html
重新编译后,还是报错了
标签:选项,10,java,报错,版本,UTF From: https://www.cnblogs.com/2008nmj/p/17553368.html