File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent
错误
在idea中,使用maven构建项目时,控制台输出:
File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent
就算将setting中的file encodings修改成 UTF-8,还是无效
解决:
在pom.xml中,properties中新增project.build.sourceEncoding:
<properties>
<proje
原创
2021-09-22 10:09:20 ·
1781 阅读 ·
1 评论