对于java项目,通常会设置文件编码为UTF-8,以避免中文乱码
build.gradle
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}
对于java项目,通常会设置文件编码为UTF-8,以避免中文乱码
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}
评论区