Blog - SpringCloud
type: channel
link: https://mint.llhnp.com/index.php/tag/springcloud/
items: 车辆模拟支付、出租、抢单等功能实现

车辆模拟支付、出租、抢单等功能实现
type: item
date: 2023-10-22T11:11:00+08:00
description: 1、部分效果演示车辆列表租车详情订单列表jmeter压力测试抢单错误信息持久化到redis控制台信息2、技术栈功能或特点名称版本父项目依赖spring-boot-starter-parent2.2.5.RELEASE微服务架构spring-cloud-dependenciesHoxton.RELEASEadmin监控服务spring-boot-admin-starter-server2.2.4eureka管理服务spring-cloud-starter-netflix-eureka-server2.2.0.RELEASEconfig配置服务spring-cloud-config-server2.2.0.RELEASEgateway网关服务spring-cloud-starter-gateway2.2.0.RELEASE链路追踪服务spring-cloud-starter-zipkin2.2.0.RELEASEredis限流spring-boot-starter-data-redis-reactive2.2.5.RELEASE组件调用(已集成熔断,负载均衡)spring-cloud-starter-openfeign2.2.0.RELEASEhutool工具类hutool-all5.8.22数据库curdmybatis-plus-boot-starter3.5.3.2短信榛子云短信zhenzisms2.0.2email邮件发送spring-boot-starter-mail2.2.5.RELEASEmq消息队列rocketmq-spring-boot-starter2.2.1阿里云oos对象储存aliyun-sdk-oss3.15.1支付宝支付alipay-sdk-java4.38.111.ALL分布式图片管理minio8.2.23、后端集成3.2、用户登录UserController.javapackage com.llh.controller; import cn.hutool.captcha.CaptchaUtil; import cn.hutool.captcha.CircleCaptcha; import cn.hutool.core.lang.UUID; import cn.hutool.core.util.RandomUtil; import cn.hutool.core.util.StrUtil; import cn.hutool.crypto.digest.DigestUtil; import cn.hutool.json.JSONUtil; import cn.hutool.jwt.JWTUtil; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.llh.domain.User; import com.llh.service.UserService; import com.llh.utils.ZzyUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.mail.SimpleMailMessage; import org.springframework.mail.javamail.JavaMailSender; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.Date; import java.util.HashMap; import java.util.Map; import java.util.concurrent.TimeUnit; /** * User: lilinhan * DateTime: 2023/10/20 11:57 */ @RestController @RequestMapping("/user") public class UserController { @Autowired UserService userService; @Autowire…