问题描述
嗨,我使用 spring web,默认情况下我需要在我的字符串中发送换行符,我收到了 400 个错误的请求。当我在请求成功通过时更改 allow-unquoted-control-chars 参数
spring.jackson.parser.allow-unquoted-control-chars=true
在 jackson 发行说明中,我看到这是非标准的。我的问题是传递不带引号的字符(如新行)的正确方法是什么?如果我更改此参数,是否有任何安全性或我可能面临的其他问题?有吗?改变这个参数的坏处
Since JSON specification requires quoting for all control characters,this is a non-standard feature,and as such disabled by default.
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)