特牛网址导航

File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent-CSDN博客

网友收藏
文章浏览阅读1.8k次,点赞3次,收藏4次。问题:编译打包(mvn clean install)文件总是为GBK格式,不是UTF-8格式原因分析:使用了默认编码格式GBK解决方案:pom文件添加配置<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding></properties>执行结果:..._file encoding has not been set, using platform encoding gbk, i.e. build is p