介绍

基于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 数据库名:lottery
      username: root    #数据库用户名
      password: root    #数据库密码
      driver-class-name: com.mysql.cj.jdbc.Driver
      initial-size: 30
      max-active: 100
      min-idle: 10
      max-wait: 60000
      time-between-eviction-runs-millis: 60000
      min-evictable-idle-time-millis: 300000
      validation-query: SELECT 1 FROM DUAL
      test-while-idle: true
      test-on-borrow: false
      test-on-return: false
      filters: stat,wall
  redis:
    port: 6379  #redis 端口号  无密码
    host: 127.0.0.1
    lettuce:
      pool:
        max-active: -1
        max-idle: 2000
        max-wait: -1
        min-idle: 1
        time-between-eviction-runs: 5000
  mvc:
    view:
      prefix: classpath:/templates/
      suffix: .html
# mybatis-plus
mybatis-plus:
  configuration:
    map-underscore-to-camel-case: true
    auto-mapping-behavior: full
  mapper-locations: classpath*:mapper/**/*Mapper.xml

# 线程池
async:
  executor:
    thread:
      core-pool-size: 6
      max-pool-size: 12
      queue-capacity: 100000
      name-prefix: lottery-service-

页面展示

  1. 主界面 

      

     

  2. 抽奖界面 

      

     

源码地址

https://gitee.com/javanoteany/lottery.git

点赞评论+关注你是最棒的人!

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐