先看看这个功能的实现步骤原理:
准备的开发工具:
1、idea,
2、微信开发者工具(https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html)
3、注册好微信公众平台(https://mp.weixin.qq.com/)
4、redis。
微信开发者工具最好下载稳定版:
一、spring boot代码:
目录结构,这里只涉及到config和controller:
pom.xml文件
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>