Fetch the repository succeeded.
测试站地址:http://dev.icoody.cn/
本项目为Coody Framework+Minicat首秀,短网址服务平台。部署在服务器,使用短域名解析即可提供服务。
全项目打包后(带前端页面)大小约:2.1M,非常精简。
前端采用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.ESource
coody.bean.dataSource.field.driver=com.mysql.jdbc.Driver
coody.bean.dataSource.field.url=jdbc\:mysql\://localhost:3306/reduce?useUnicode\=true&characterEncoding\=UTF-8&serverTimezone=GMT%2B8
coody.bean.dataSource.field.user=reduce
coody.bean.dataSource.field.password=Coody888!
coody.bean.dataSource.field.maxPoolSize=64
coody.bean.dataSource.field.minPoolSize=2
coody.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. 版权所有
反馈邮箱:644556636@qq.com 交流群号:218481849
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Activity
Community
Health
Trend
Influence
:Code submit frequency
:React/respond to issue & PR etc.
:Well-balanced team members and collaboration
:Recent popularity of project
:Star counts, download counts etc.