wx-java-mp-spring-boot-starter 包

wx-java-mp-spring-boot-starter 包

# wx-java-mp-spring-boot-starter 包

- 微信Java开发工具包,支持包括微信支付、开放平台、公众号、企业微信、视频号、小程序等微信功能模块的后端开发。
- 官网:[https://github.com/binarywang/WxJava](https://github.com/binarywang/WxJava)
- 官网开发文档:[https://gitee.com/binary/weixin-java-tools/wikis/Home](https://gitee.com/binary/weixin-java-tools/wikis/Home)
- 基于Spring Boot 和 WxJava 实现的微信小程序Java后端Demo: [https://github.com/binarywang/wx-java-miniapp-demo](https://github.com/binarywang/wx-java-miniapp-demo)
- 包版本号:4.6.0 「这个版本和spring-boot 的 2.5.15 相对应」
- 由于Gson的版本问题,在java 17下运行会报错  Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @1888ff2c
  - 解决方案见: [https://github.com/binarywang/WxJava/issues/3054](https://github.com/binarywang/WxJava/issues/3054)
  - 具体解决方法如下:
  - 然后在启动类里的main方法的第一行添加:
- 问题原理: [https://dev.to/jjbrt/how-to-avoid-resorting-to-add-exports-and-add-opens-in-jdk-16-and-later-j3m](https://dev.to/jjbrt/how-to-avoid-resorting-to-add-exports-and-add-opens-in-jdk-16-and-later-j3m)
- 源码:[https://gitcode.com/gh_mirrors/core26/core/?utm_source=artical_gitcode&index=top&type=card&webUrl=](https://gitcode.com/gh_mirrors/core26/core/?utm_source=artical_gitcode&index=top&type=card&webUrl=)
- 配置信息需要放在启动模块的application.properties 里面