Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liweimin0512/seckill_java
JAVA高并发秒杀项目,基于SSM框架
https://github.com/liweimin0512/seckill_java
Last synced: 30 days ago
JSON representation
JAVA高并发秒杀项目,基于SSM框架
- Host: GitHub
- URL: https://github.com/liweimin0512/seckill_java
- Owner: Liweimin0512
- License: gpl-3.0
- Created: 2017-06-21T10:30:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-25T03:18:55.000Z (over 7 years ago)
- Last Synced: 2023-08-08T06:47:13.606Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 58.6 KB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# seckill_java
JAVA高并发秒杀项目DEMO,具有很强的学习价值,基于SSM框架,利用redis缓存。注释完全。项目可运行。## 关于releases
你可以看到4个tag,分别对应了开发的四个部分,分别是:
+ v1.0 dao层的实现
+ v2.0 service层的实现
+ v3.0 web层的实现
+ v4.0 高并发优化## 一些配置的官方地址
[logback配置](http://logback.qos.ch/manual/configuration.html)
[spring配置](http://docs.spring.io/spring/docs/)
[mybatis配置](http://mybatis.github.io/mybatis-3/zh/index.html)## maven命令创建web骨架项目
```
mvn archetype:create -DgroupId=org.seckill -DartifactId=seckill -DarchetypeArtifactId=maven-archetype-webapp
```
## Spring整合Mybatis
### 整合目标
+ 更少的编码:只写接口,不写实现。
+ 更少的配置
+ 足够的灵活性## 高并发优化方案
+ 前端控制:暴露接口,按钮防重复
+ 动静态数据分离:CDN缓存,后端缓存
+ 事务竞争优化:减少事务锁时间