intellij idea 运行 gralde spring 中文乱码问题 解决办法

build.gradle文件里面加上如下:

tasks.withType(GroovyCompile) {
groovyOptions.encoding = "MacRoman"
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
}

猜你喜欢

转载自www.cnblogs.com/jingzhi-sksk/p/12658907.html
今日推荐