微信小程序 出现47001 data format error原因解决办法
看下错误:
主要原因是请求的数据不是json格式引起的
分享下我用的代码和函数:
发送模板消息
public function sendmessage(){
$data$_POSTjson_decode(file_get_contents(php://input), TRUE)…
Jackson 除了可以处理 JSON,还可以用来处理 XML(jackson-dataformat-xml 模块),可以轻松完成 Java 对象和 XML 文档的互转;本文主要介绍使用 Jackson 来处理 XML,文中所使用到的软件版本:Java 1.8.0_321、Jackson 2.1…
Correct the classpath of your application so that it contains a single, compatible version of com.fasterxml.jackson.dataformat.xml.XmlMapper 解决:
改用其他版本,我没写版本号,springboot自己默认的是 2.11.4 版本
成功启动项目…