{"id":20837436,"url":"https://github.com/xdwangwei/miaosha","last_synced_at":"2025-05-08T20:01:58.744Z","repository":{"id":37136137,"uuid":"241616078","full_name":"xdwangwei/miaosha","owner":"xdwangwei","description":"基于springboot+Ajax的商品秒杀项目基础项目（前后端分离），涉及Springboot、Ajax、redis、mysql、Nginx以及阿里云短信发送服务","archived":false,"fork":false,"pushed_at":"2022-06-17T02:55:24.000Z","size":24760,"stargazers_count":8,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T17:58:51.766Z","etag":null,"topics":["ajax","js","mybatis-generator","mybatis-springboot","mysql","redis","springboot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xdwangwei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-19T12:27:48.000Z","updated_at":"2025-03-02T14:15:03.000Z","dependencies_parsed_at":"2022-09-03T05:11:30.439Z","dependency_job_id":null,"html_url":"https://github.com/xdwangwei/miaosha","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdwangwei%2Fmiaosha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdwangwei%2Fmiaosha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdwangwei%2Fmiaosha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdwangwei%2Fmiaosha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xdwangwei","download_url":"https://codeload.github.com/xdwangwei/miaosha/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253141474,"owners_count":21860541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ajax","js","mybatis-generator","mybatis-springboot","mysql","redis","springboot"],"created_at":"2024-11-18T01:07:32.568Z","updated_at":"2025-05-08T20:01:58.445Z","avatar_url":"https://github.com/xdwangwei.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 基于springboot+js的商品秒杀项目基础项目（前后端分离）\n\n\n## 开发环境\n\n1. maven 3.6\n2. SpringBoot 2.2.4\n3. IDEA 2019.3\n4. mysql 8.0\n5. VS Code\n6. 阿里云主机+redis\n7. lombok插件支持\n\n## 依赖导入\n\n1. springboot-web\n2. hibernate validator\n3. 阿里云市场短信服务相关依赖\n4. mysql驱动（8.0）及数据源（com.alibaba.Druid）\n5. joda-time时间支持\n\n## 功能介绍\n\n### 前端\n\n1. register.html 注册页面（实现手机号+验证码注册方式）\n2. login.html 登录页面（手机号+密码）\n3. itemlist.html 显示商品列表\n4. item.html 商品详情页以及下单功能\n5. ajax交互（json数据传输）\n\n### 后端\n\n1. hibernate validator数据校验，自定义结果封装\n2. redis存储用户注册验证码\n3. 阿里云云市场短信服务，发送注册码\n4. 全局异常统一处理，返回格式统一\n5. 返回值封装，返回统一对象\n6. 持久层、业务层、控制器层对象转换\n7. mybatis generator\n8. 用户注册与登录功能\n9. 商品查询与增加功能\n10. 订单创建功能\n11. 密码加密，单独建表\n\n### 注意事项\n\n1. 若克隆项目或直接下载代码，请修改application.xml中redis配置的host和port，以及用于阿里云短信服务的appId（若无，请注释掉UserController注册方法中发送短信功能代码，在控制台输出语句以代替）\n2. 注意mysql版本，8.0使用的驱动是com.mysql.cj.jdbc.Driver\n3. mybatis-generator配置文件中，有一项是设置mysql驱动包的位置，注意修改\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdwangwei%2Fmiaosha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxdwangwei%2Fmiaosha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdwangwei%2Fmiaosha/lists"}