修改 application.yml
spring.jackson.parser.allow_unquoted_control_chars 设置为 true
spring:
jackson:
parser:
#允许出现特殊字符和转义符
allow_unquoted_control_chars: true
#允许出现单引号
allow_single_quotes: true
如果配置文件是application.properties修改配置
spring.jackson.parser.allow_unquoted_control_chars=true
网友评论