wx-java-mp-spring-boot-starter 包
wx-java-mp-spring-boot-starter 包
微信Java开发工具包,支持包括微信支付、开放平台、公众号、企业微信、视频号、小程序等微信功能模块的后端开发。
官网开发文档:https://gitee.com/binary/weixin-java-tools/wikis/Home
基于Spring Boot 和 WxJava 实现的微信小程序Java后端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
具体解决方法如下:
然后在启动类里的main方法的第一行添加:
问题原理: 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=
配置信息需要放在启动模块的application.properties 里面