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'
}
posted @ 2020-04-08 11:41  会游泳的小猪  阅读(485)  评论(0)    收藏  举报