Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
亦蔚然
Project Crawler Elasticsearch
提交
a2980969
P
Project Crawler Elasticsearch
项目概览
亦蔚然
/
Project Crawler Elasticsearch
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Project Crawler Elasticsearch
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
a2980969
编写于
5月 24, 2021
作者:
亦蔚然
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
v3__使用了Mysql数据库
上级
bd82b795
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
9 addition
and
3 deletion
+9
-3
pom.xml
pom.xml
+7
-1
src/main/resources/db/migration/V1__Create_tables.sql
src/main/resources/db/migration/V1__Create_tables.sql
+1
-1
src/main/resources/db/mybatis/config.xml
src/main/resources/db/mybatis/config.xml
+1
-1
未找到文件。
pom.xml
浏览文件 @
a2980969
...
...
@@ -81,6 +81,12 @@
<artifactId>
mybatis
</artifactId>
<version>
3.5.6
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
8.0.25
</version>
</dependency>
<dependency>
<groupId>
org.junit.jupiter
</groupId>
<artifactId>
junit-jupiter-api
</artifactId>
...
...
@@ -167,7 +173,7 @@
<artifactId>
flyway-maven-plugin
</artifactId>
<version>
5.2.4
</version>
<configuration>
<url>
jdbc:
h2:file:/Users/yiweiran/Documents/workPlace/java/JavaProject-Crawler-Elasticsearch/news
</url>
<url>
jdbc:
mysql://localhost:3306/news?characterEncoding=utf8
</url>
<user>
root
</user>
<password>
123456
</password>
</configuration>
...
...
src/main/resources/db/migration/V1__Create_tables.sql
浏览文件 @
a2980969
...
...
@@ -14,4 +14,4 @@ create table NEWS
url
varchar
(
3000
),
created_at
timestamp
default
now
(),
modified_at
timestamp
default
now
()
)
)
DEFAULT
CHARSET
=
utf8mb4
;
src/main/resources/db/mybatis/config.xml
浏览文件 @
a2980969
...
...
@@ -18,7 +18,7 @@
<dataSource
type=
"POOLED"
>
<property
name=
"driver"
value=
"org.h2.Driver"
/>
<property
name=
"url"
value=
"jdbc:
h2:file:/Users/yiweiran/Documents/workPlace/java/JavaProject-Crawler-Elasticsearch/news
"
/>
value=
"jdbc:
mysql://localhost:3306/news?characterEncoding=utf8
"
/>
<property
name=
"username"
value=
"root"
/>
<property
name=
"password"
value=
"123456"
/>
</dataSource>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录