开发者社区> 问答> 正文

jfinal weixin demo运行报错?报错

@JFinal 你好,想跟你请教个问题:

我从git@osc上把jfinal-weixin demo下载下来,运行WeixinConfig, 访问http://localhost/msg报如下错误,请问怎么解决?谢谢(a_little_config.txt中我只改了数据库配置)

展开
收起
爱吃鱼的程序员 2020-06-10 11:01:03 696 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

      数据是微信服务器发过来的还是自己用工具模拟的?回复<aclass='referer'target='_blank'>@happywuya054:搞定后回来分享一下我可能知道什么问题了,我自己试下http://www.cnblogs.com/zyw-205520/p/4733004.html我是看着这个文章做的,配置的是我个人微信公众号,没有造任何数据

    微信公众号开发我是小白,在运行jfinal-weixindemo出现上述问题时,调试发现错误出现在如下代码位置:

    <imgsrc="http://static.oschina.net/uploads/space/2015/1118/110238_2BKt_2416292.png"alt="">

    看到如下回答:<imgsrc="http://static.oschina.net/uploads/space/2015/1118/110350_2E5E_2416292.png"alt="">

    想到应该是数据传输问题,我是浏览器中直接访问的http://localhost/msg,根本没有xml格式数据。后来找了一个微信调试小工具,重新运行、访问,就有相应的消息处理了:

    <imgsrc="http://static.oschina.net/uploads/space/2015/1118/110534_GvQZ_2416292.png"alt="">

    <divclass='ref'>

    引用来自“happywuya054”的评论

    微信公众号开发我是小白,在运行jfinal-weixindemo出现上述问题时,调试发现错误出现在如下代码位置:

    <imgsrc="http://static.oschina.net/uploads/space/2015/1118/110238_2BKt_2416292.png"alt="">

    看到如下回答:<imgsrc="http://static.oschina.net/uploads/space/2015/1118/110350_2E5E_2416292.png"alt="">

    想到应该是数据传输问题,我是浏览器中直接访问的http://localhost/msg,根本没有xml格式数据。后来找了一个微信调试小工具,重新运行、访问,就有相应的消息处理了:

    <imgsrc="http://static.oschina.net/uploads/space/2015/1118/110534_GvQZ_2416292.png"alt="">

    2020-06-10 13:25:10
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Electronegativity-A-Study-Of-Electron-Security 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载