发布于 2年前

maven编译报错File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!

maven编译工程报错

File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!

在properties添加源码编码设置解决:

 <properties>
       <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
©2020 edoou.com   京ICP备16001874号-3