# 短链接 **Repository Path**: www.iamooc.com/short-url ## Basic Information - **Project Name**: 短链接 - **Description**: 参考 https://gitee.com/hao_jiayu/urls来写的,采用redis和mysql数据库来存储,采用redis序列(随机递增,不是固定步长),显示字符用的是62进制(0-9a-zA-Z),不过这个62进制不是顺序的,是乱序的(混淆用) - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 6 - **Forks**: 1 - **Created**: 2020-01-03 - **Last Updated**: 2022-12-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 短链接 #### 介绍 参考 https://gitee.com/hao_jiayu/urls来写的,采用redis和mysql数据库来存储,采用redis序列(随机递增,不是固定步长),显示字符用的是62进制(0-9a-zA-Z),不过这个62进制不是顺序的,是乱序的(混淆用) #### 软件架构 这个短链接只是一个练手用的,没有实际用于生产,没有做过多的优化,没有进行并发测试 #### 安装教程 1. 下载项目。项目使用了lombok插件,ide怎么安装lombok,请自行安装 2. 修改application-dev.yml中对应的mysql配置和redis配置信息 3. 运行com.su.shorturl.ShortUrlApplication,启动项目 4. 访问地址http://localhost:8888/s/ ![图片](./img/效果.jpg) #### 使用技术 1. 服务端 >> springboot 2 >> mysql >> redis >> hutool >> mybatis-plus 2. 前端 >> bootstrap >> jquery #### 参考 1. https://gitee.com/hao_jiayu/urls 2. https://www.zhihu.com/question/29270034 3. https://gitee.com/tinyframework/urlshorter 4. https://gitee.com/zwei1025/short-web-site-service 5. https://nicky-chen.github.io/2018/10/15/id-redis/