1.再配置文件(application.properties)中添加编码字符集

#返回页面、数据中文乱码问题
spring.http.encoding.force=true
spring.http.encoding.charset=UTF-8
spring.http.encoding.enabled=true
server.tomcat.uri-encoding = UTF-8
#解决程序读配置文件乱码问题
spring.message.encoding = UTF-8

 

相关文章:

  • 2021-08-13
  • 2022-02-15
  • 2021-12-31
  • 2022-12-23
  • 2021-06-18
  • 2021-06-29
  • 2022-12-23
  • 2021-04-01
猜你喜欢
  • 2021-12-24
  • 2021-03-31
  • 2021-10-02
  • 2022-12-23
  • 2021-06-28
  • 2022-12-23
  • 2021-06-01
相关资源
相似解决方案