install(FreeMarker) { templateLoader = ClassTemplateLoader(this::class.java.classLoader, "templates") defaultEncoding = "utf-8" }
主要就是 defaultEncoding = "utf-8"这句话
install(FreeMarker) { templateLoader = ClassTemplateLoader(this::class.java.classLoader, "templates") defaultEncoding = "utf-8" }
主要就是 defaultEncoding = "utf-8"这句话