编码 UTF-8 的不可映射字符
方法源自: https://blog.csdn.net/bigtree_3721/article/details/52838957
在pom的/project/build/plugins/下的编译插件声明 中加入下面的配置:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>utf8</encoding>
</configuration>
</plugin>
PS:原因是pom.xml默认gbk编码,而项目编码为utf-8