zl程序教程

您现在的位置是:首页 >  后端

当前栏目

解决maven打包编译出现File encoding has not been set问题

Mavenset打包 解决 not 编译 出现 File
2023-09-11 14:16:20 时间

maven打包编译时后台一直输出警告信息

[WARNING] File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent!
找了半天,原来只要在pom.xml文件中增加一个配置项即可

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>