基于SpringBoot+Redis的转盘抽奖项目
介绍
基于SpringBoot+Redis等技术实现转盘抽奖活动项目,含前端、后台及数据库文件
软件架构
SpringBoot Redis Mybaits
配置文件
application.yml
server:port: 8080 #端口号servlet:context-path: /
spring:datasource:druid:url: jdbc:mysql://127.0.0.1:3366/lottery?useUnicode=true&characterEncoding=utf-8&useSSL=false #数据库端口号:3366 数据库名:lotteryusername: root #数据库用户名password: root #数据库密码driver-class-name: com.mysql.cj.jdbc.Driverinitial-size: 30max-active: 100min-idle: 10max-wait: 60000time-between-eviction-runs-millis: 60000min-evictable-idle-time-millis: 300000validation-query: SELECT 1 FROM DUALtest-while-idle: truetest-on-borrow: falsetest-on-return: falsefilters: stat,wallredis:port: 6379 #redis 端口号 无密码host: 127.0.0.1lettuce:pool:max-active: -1max-idle: 2000max-wait: -1min-idle: 1time-between-eviction-runs: 5000mvc:view:prefix: classpath:/templates/suffix: .html
# mybatis-plus
mybatis-plus:configuration:map-underscore-to-camel-case: trueauto-mapping-behavior: fullmapper-locations: classpath*:mapper/**/*Mapper.xml# 线程池
async:executor:thread:core-pool-size: 6max-pool-size: 12queue-capacity: 100000name-prefix: lottery-service-
页面展示
-
主界面


-
抽奖界面


源码地址
https://gitee.com/javanoteany/lottery.git
点赞、评论+关注!你是最棒的人!
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
