Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
quickmsg
smqtt
提交
6344548b
S
smqtt
项目概览
quickmsg
/
smqtt
通知
3
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
smqtt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6344548b
编写于
7月 13, 2021
作者:
L
luxurong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs commit
上级
a2600576
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
37 addition
and
20 deletion
+37
-20
docs/cluster/1.main.md
docs/cluster/1.main.md
+5
-2
docs/quickstart/README.md
docs/quickstart/README.md
+13
-4
docs/其他/1.store.md
docs/其他/1.store.md
+19
-12
pom.xml
pom.xml
+0
-2
未找到文件。
docs/cluster/1.main.md
浏览文件 @
6344548b
...
...
@@ -8,7 +8,9 @@ sort: 1
### 引入依赖
```markdown
```
markdown
<dependency>
<groupId>
io.github.quickmsg
</groupId>
<artifactId>
smqtt-core
</artifactId>
...
...
@@ -19,7 +21,8 @@ sort: 1
<artifactId>
smqtt-registry-scube
</artifactId>
<version>
1.0.6
</version>
</dependency>
```
```
...
...
docs/quickstart/README.md
浏览文件 @
6344548b
...
...
@@ -11,10 +11,19 @@ sort: 1
git clone https://github.com/quickmsg/smqtt
```
2.
打包
```
markdown
mvn compile package -Dmaven.test.skip=true -P jar,web
```
在smqtt-bootstrap/target目录下生成jar包
1.
smqtt-ui安装前端依赖
```
markdown
npm install
```
2.
打包java代码
```markdown
mvn compile package -Dmaven.test.skip=true -P jar,web
```
在smqtt-bootstrap/target目录下生成jar包
3.
准备配置文件
...
...
docs/其他/1.store.md
浏览文件 @
6344548b
...
...
@@ -21,22 +21,29 @@ sort: 2
### 使用数据库去存储session/保留消息
-
引入DB依赖
```
markdown
<dependency>
<groupId>
io.github.quickmsg
</groupId>
<artifactId>
smqtt-persistent-db
</artifactId>
<version>
1.0.5
</version>
</dependency>
```
<dependency>
<groupId>
io.github.quickmsg
</groupId>
<artifactId>
smqtt-persistent-db
</artifactId>
<version>
1.0.5
</version>
</dependency>
```
- 引入驱动依赖
> 根据版本引入 mysql/pg/oracle等驱动依赖
```
markdown
<!--mysql驱动包-->
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
5.1.35
</version>
</dependency>
<!--mysql驱动包-->
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
5.1.35
</version>
</dependency>
```
- 服务启动时config.properties 添加 配置参数
...
...
pom.xml
浏览文件 @
6344548b
...
...
@@ -118,7 +118,6 @@
<activeByDefault>
true
</activeByDefault>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>
org.sonatype.plugins
</groupId>
...
...
@@ -177,7 +176,6 @@
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
<distributionManagement>
<snapshotRepository>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录