配置IDEA
- Help–>Edit Custom VM Options
- 添加一行這個屬性
-Dfile.encoding=UTF-8
項目添加
- 在build.gradle文件中添加
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
-Dfile.encoding=UTF-8
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
/** * @describe: 類描述信息 * @author: morningcat.zhang * @date: ${DATE} ${TIME} */