springBoot后台想前台传数据乱码问题

server:
  port: 8080
  servlet:
    context-path: /anga
  tomcat:
    uri-encoding: UTF-8

spring:
  dubbo:
    application:
      name: process
      id: process
    registry:
      address:  zookeeper://localhost:2181
  http:
    encoding:
      force: true
      charset: utf-8
      enabled: true

主要是最下面的chartset字符集设置的问题,添加上后就可以了。

猜你喜欢

转载自blog.csdn.net/qq_39091546/article/details/108809119