java - When using gradle to build a war package, a character error will occur on the deployment server
扔个三星炸死你
扔个三星炸死你 2017-06-12 09:23:39
0
1
653

This error is displayed when building the war package: warning unmappable characters in encoding gbk. I have added these
tasks.withType(JavaCompile) {

in build.gradle
options.encoding = "UTF-8"

}

tasks.withType(Compile) {

options.encoding = "UTF-8"

}
[compileJava, compileTestJava].options.encoding = 'UTF-8'`
Modify the bat file in the configuration file set DEFAULT_JVM_OPTS=-Dfile.encoding=UTF-8 , I also changed it but

still appears
扔个三星炸死你
扔个三星炸死你

reply all(1)
左手右手慢动作
  1. Look at the code in the error line

  2. Try setting up the project’s coding in the IDE

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template