Skip to content

一个通过Spring+AOP+Redis+MySQL实现的商品排行榜

Notifications You must be signed in to change notification settings

dream-bytedance/Commodity_Rankings

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to build

clone 项目至本地目录:

git clone [email protected]:DieselNiu/Commodity_Rankings.git

从 Docker 启动 MySQL 数据库:

docker run --name rankings -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 MYSQL_DATABASE=mall -d mysql:8.0

从 Docker 启动redis:

docker run -p 6379:6379 -d redis 

使用 IDEA 打开项目,刷新 Maven,再使用开源数据库迁移工具 Flyway 完成自动建表工作:

mvn flyway:migrate

项目测试:

mvn clean verify

运行项目:

  • Run Application 类

  • 访问 localhost:8080/rank.htm 就可以可以运行了

运行结果如下图:

gWeouT.png

About

一个通过Spring+AOP+Redis+MySQL实现的商品排行榜

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%