spring boot + thymeleaf 乱码问题

spring boot + thymeleaf 乱码问题



hellotrms
发布于 2017/01/17 15:27

阅读 1K+

收藏 0




<a data-traceid="question_detail_above_text_l<a data-traceid=" question_detail_above_text_link_1"="" data-tracepid="question_detail_above_text_link" style="color:#A00;font-weight:bold; " href="https://www.oschina.net/question/2663968_2304821" target="_blank">开发四年只会写业务代码,分布式高并发都不会还做程序员?->>>
  


spring boot + thymeleaf ,现在一个简单的html页面都有乱码问题,(不是所有中文都是乱码,而是部分乱码)

配置如下:

spring:
  thymeleaf:
    prefix: classpath:/templates/
    suffix: .html
    mode: HTML5
    encoding: UTF-8
    content-type: text/html
    cache: false

以上配置应该是没问题的,还是会出现部分乱码情况



原文地址:https://www.oschina.net/question/2350780_2217792

posted @ 2019-06-17 11:05  星朝  阅读(972)  评论(0)    收藏  举报