介紹
基于SpringBoot+Redis等技術(shù)實(shí)現(xiàn)轉(zhuǎn)盤(pán)抽獎(jiǎng)活動(dòng)項(xiàng)目,含前端、后臺(tái)及數(shù)據(jù)庫(kù)文件
軟件架構(gòu)
SpringBoot
Redis
Mybaits
配置文件
application.yml
server:
port: 8080 #端口號(hào)
servlet:
context-path: /
spring:
datasource:
druid:
url: jdbc:mysql://127.0.0.1:3366/lottery?useUnicode=true&characterEncoding=utf-8&useSSL=false #數(shù)據(jù)庫(kù)端口號(hào):3366 數(shù)據(jù)庫(kù)名:lottery
username: root #數(shù)據(jù)庫(kù)用戶名
password: root #數(shù)據(jù)庫(kù)密碼
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 端口號(hào) 無(wú)密碼
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-
頁(yè)面展示
- 主界面
- 抽獎(jiǎng)界面
源碼地址
https://gitee.com/javanoteany/lottery.git
-
數(shù)據(jù)庫(kù)
+關(guān)注
關(guān)注
7文章
3925瀏覽量
66172 -
前端
+關(guān)注
關(guān)注
1文章
214瀏覽量
18273 -
Redis
+關(guān)注
關(guān)注
0文章
386瀏覽量
11431 -
SpringBoot
+關(guān)注
關(guān)注
0文章
175瀏覽量
397
發(fā)布評(píng)論請(qǐng)先 登錄
HarmonyOS開(kāi)發(fā)案例:【抽獎(jiǎng)轉(zhuǎn)盤(pán)】

Deyisupport 社區(qū) 6 周年慶 —— 三重活動(dòng) + 幸運(yùn)大轉(zhuǎn)盤(pán)抽獎(jiǎng)
通過(guò)一個(gè)圓形抽獎(jiǎng)轉(zhuǎn)盤(pán)演示HarmonyOS自定義組件的實(shí)現(xiàn)
聲光電子轉(zhuǎn)盤(pán)聲光電子轉(zhuǎn)盤(pán)的電路原理圖

Springboot+redis操作多種實(shí)現(xiàn)

SpringBoot+Redis實(shí)現(xiàn)點(diǎn)贊功能的緩存和定時(shí)持久化(附源碼)
什么是 SpringBoot?

如何在SpringBoot中解決Redis的緩存穿透等問(wèn)題
如何用Springboot整合Redis

SpringBoot AOP + Redis 延時(shí)雙刪功能實(shí)戰(zhàn)

如何利用SpringBoot+Redis BitMap實(shí)現(xiàn)簽到與統(tǒng)計(jì)功能?
一個(gè)注解搞定SpringBoot接口防刷
HarmonyOS開(kāi)發(fā)案例:【抽獎(jiǎng)轉(zhuǎn)盤(pán)】

評(píng)論