迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:reduce开源软件地址:https://gitee.com/coodyer/reduce开源软件介绍:reduce短网址平台测试站地址:http://dev.icoody.cn/ 技术说明本项目为Coody Framework+Minicat首秀,短网址服务平台。部署在服务器,使用短域名解析即可提供服务。全项目打包后(带前端页面)大小约:2.5M,非常精简。前端采用Amaze UI,后端采用Coody Framework MVC,数据库采用H2DB Coody Framework地址:https://gitee.com/coodyer/Coody-Framework 基本使用导入Maven项目,运行访问即可 也可以Maven Install 构建Jar包,丢服务器java -jar 运行。记得配置数据库。 更换数据库有好几位朋友来问我换mysql,介绍下换成mysql的方案1、引入mysql驱动(根据你mysql版本来) <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.18</version></dependency> 2、修改配置 coody.bean.dataSource.class=org.coody.framework.esource.ESourcecoody.bean.dataSource.field.driver=com.mysql.jdbc.Drivercoody.bean.dataSource.field.url=jdbc\:mysql\://localhost:3306/reduce?useUnicode\=true&characterEncoding\=UTF-8&serverTimezone=GMT+8coody.bean.dataSource.field.user=reducecoody.bean.dataSource.field.password=Coody888!coody.bean.dataSource.field.maxPoolSize=64coody.bean.dataSource.field.minPoolSize=2coody.bean.dataSource.field.initialPoolSize=5 3、导入数据表 CREATE TABLE `short_info` ( `id` bigint(32) NOT NULL AUTO_INCREMENT, `frequency` bigint(32) NOT NULL DEFAULT 0, `status` tinyint(4) DEFAULT '1', `appId` int(11) DEFAULT NULL, `userId` int(11) DEFAULT NULL, `url` varchar(255) DEFAULT NULL, `createTime` datetime DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) );CREATE TABLE `user_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(32) DEFAULT NULL, `password` varchar(40) DEFAULT NULL, `status` tinyint(4) DEFAULT '1', `createTime` datetime DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) , UNIQUE KEY `email_uk` (`email`) USING BTREE) ;CREATE TABLE `app_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(32) DEFAULT NULL, `userId` int(11) DEFAULT NULL, `unionId` varchar(32) DEFAULT NULL, `createTime` datetime DEFAULT CURRENT_TIMESTAMP, `status` int(2) DEFAULT '0', PRIMARY KEY (`id`) , UNIQUE KEY `app_uk` (`unionId`) USING BTREE) ;CREATE TABLE `email_queue` ( `id` bigint(32) NOT NULL AUTO_INCREMENT, `unionId` varchar(32) DEFAULT NULL, `title` varchar(128) DEFAULT NULL, `context` varchar(256) DEFAULT NULL, `targeEmail` varchar(32) DEFAULT NULL, `status` int(2) DEFAULT '0', `createTime` datetime DEFAULT CURRENT_TIMESTAMP, `millisecond` bigint(32) DEFAULT NULL, `updateTime` datetime DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`)) 然后就可与愉快的使用MYSQL了 随便丢几张图登录页面注册页面找回密码页面用户首页应用页面短网址页面版权说明:作者:Coody版权:©2014-2020 Test404 All right reserved. 版权所有反馈邮箱:[email protected] 交流群号:218481849 ![]() |
2022-08-15
2022-08-17
2023-10-27
2022-09-23
2022-08-13
请发表评论