-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4ffd3f
commit e6090b6
Showing
15 changed files
with
935 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,7 @@ bin/ | |
|
||
### Mac OS ### | ||
.DS_Store | ||
|
||
node_modules/** | ||
/docs/.vuepress/.cache/ | ||
/docs/.vuepress/.temp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import {provide} from "vue" | ||
import {defineClientConfig} from "vuepress/client"; | ||
import {version} from '../../package.json' | ||
export default defineClientConfig({ | ||
setup() { | ||
console.log("version:" + version) | ||
provide('version', version) | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,211 @@ | ||
import {defineUserConfig} from 'vuepress' | ||
import {defaultTheme} from '@vuepress/theme-default' | ||
import {viteBundler} from '@vuepress/bundler-vite' | ||
import {version} from '../../package.json' | ||
|
||
export default defineUserConfig({ | ||
lang: 'zh-CN', | ||
title: 'spring-cloud-stream-redis', | ||
description: 'spring-cloud-stream-redis-doc', | ||
base: '/spring-cloud-stream-redis/', | ||
locales: { | ||
// 键名是该语言所属的子路径 | ||
// 作为特例,默认语言可以使用 '/' 作为其路径。 | ||
'/': { | ||
lang: 'zh-CN', | ||
title: 'spring-cloud-stream-redis', | ||
description: 'spring cloud stream redis 实现' | ||
}, | ||
'/en/': { | ||
lang: 'en-US', | ||
title: 'spring-cloud-stream-redis', | ||
description: 'spring cloud stream redis realization' | ||
} | ||
}, | ||
head: [ | ||
['link', {rel: 'icon', href: '/loki-doc/images/f.ico'}], | ||
['link', {rel: 'shortcut icon', href: '/loki-doc/images/f.ico'}] | ||
], | ||
bundler: viteBundler(), | ||
theme: defaultTheme({ | ||
// logo: "/images/logo.png", | ||
// logoDark: "/images/logo-d.png", | ||
locales: { | ||
'/': { | ||
label: '简体中文', | ||
selectLanguageText: '选择语言', | ||
selectLanguageName: '简体中文', | ||
ariaLabel: '选择语言', | ||
editLinkText: '在 GitHub 上编辑此页', | ||
lastUpdated: true, | ||
lastUpdatedText: '上次更新', | ||
tip: '提示', | ||
warning: '注意', | ||
danger: '警告', | ||
// 404 page | ||
notFound: [ | ||
'这里什么都没有', | ||
'我们怎么到这来了?', | ||
'这是一个 404 页面', | ||
'看起来我们进入了错误的链接', | ||
], | ||
contributors: false, | ||
sidebar: { | ||
"/guide/": [ | ||
{ | ||
text: '指南', | ||
collapsible: true, | ||
children: [ | ||
'/guide/introduction', | ||
'/guide/getting-started', | ||
'/guide/install', | ||
'/guide/config', | ||
// '/guide/annotation', | ||
] | ||
}, | ||
// { | ||
// text: '发送消息', | ||
// collapsible: true, | ||
// children: [ | ||
// '/guide/send/introduction', | ||
// '/guide/send/mapper', | ||
// ] | ||
// }, { | ||
// text: '接收消息', | ||
// collapsible: true, | ||
// children: [ | ||
// '/guide/listener/introduction', | ||
// '/guide/listener/auto', | ||
// '/guide/listener/non-auto', | ||
// ] | ||
// } | ||
], | ||
}, | ||
navbar: [ | ||
{ | ||
text: '指南', | ||
//link: '/guide/', | ||
children: [ | ||
'/guide/introduction', | ||
'/guide/getting-started', | ||
'/guide/install', | ||
'/guide/config', | ||
// '/guide/annotation', | ||
// { | ||
// text: '发送消息', | ||
// children: [ | ||
// '/guide/send/introduction', | ||
// '/guide/send/mapper', | ||
// ] | ||
// }, | ||
// { | ||
// text: '接收消息', | ||
// children: [ | ||
// '/guide/listener/introduction', | ||
// '/guide/listener/auto', | ||
// '/guide/listener/non-auto', | ||
// ] | ||
// } | ||
] | ||
}, | ||
{ | ||
text: `v${version}`, | ||
children: [ | ||
{ | ||
text: '更新日志', | ||
link: 'https://github.com/guoshiqiufeng/spring-cloud-stream-redis/releases', | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
'/en/': { | ||
label: 'English', | ||
selectLanguageText: 'Languages', | ||
selectLanguageName: 'English', | ||
ariaLabel: 'Select language', | ||
editLinkText: 'Edit this page on GitHub', | ||
lastUpdated: true, | ||
lastUpdatedText: 'Last Updated', | ||
contributors: false, | ||
notFound: [ | ||
'There\'s nothing here', | ||
'How did we get here?', | ||
'This is a 404 page', | ||
'Looks like we ran into the wrong link', | ||
], | ||
sidebar: { | ||
"/en/guide/": [ | ||
{ | ||
text: 'Guide', | ||
collapsible: true, | ||
children: [ | ||
'/en/guide/introduction', | ||
'/en/guide/getting-started', | ||
'/en/guide/install', | ||
'/en/guide/config', | ||
// '/en/guide/annotation', | ||
] | ||
}, | ||
// { | ||
// text: 'Send message', | ||
// collapsible: true, | ||
// children: [ | ||
// '/en/guide/send/introduction', | ||
// '/en/guide/send/mapper', | ||
// ] | ||
// }, | ||
// { | ||
// text: 'Receive message', | ||
// collapsible: true, | ||
// children: [ | ||
// '/en/guide/listener/introduction', | ||
// '/en/guide/listener/auto', | ||
// '/en/guide/listener/non-auto', | ||
// ] | ||
// } | ||
], | ||
}, | ||
navbar: [ | ||
{ | ||
text: 'Guide', | ||
// link: '/en/guide/', | ||
children: [ | ||
'/en/guide/introduction', | ||
'/en/guide/getting-started', | ||
'/en/guide/install', | ||
'/en/guide/config', | ||
// '/en/guide/annotation', | ||
// { | ||
// text: 'Send message', | ||
// children: [ | ||
// '/en/guide/send/introduction', | ||
// '/en/guide/send/mapper', | ||
// ] | ||
// }, | ||
// { | ||
// text: 'Receive message', | ||
// children: [ | ||
// '/en/guide/listener/introduction', | ||
// '/en/guide/listener/auto', | ||
// '/en/guide/listener/non-auto', | ||
// ] | ||
// } | ||
] | ||
}, | ||
{ | ||
text: `v${version}`, | ||
children: [ | ||
{ | ||
text: 'Changelog', | ||
link: 'https://github.com/guoshiqiufeng/spring-cloud-stream-redis/releases', | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
}, | ||
repo: "https://github.com/guoshiqiufeng/spring-cloud-stream-redis" | ||
}), | ||
plugins: [] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
--- | ||
lang: en-US | ||
title: Configure | ||
description: Configure | ||
--- | ||
# Configure | ||
|
||
[spring-cloud-stream-redis](https://github.com/guoshiqiufeng/spring-cloud-stream-redis) is very easy to configure, we just need some simple configuration! | ||
|
||
> ake sure you have spring-cloud-stream-redis installed,if you haven't, check out the [Install](install.md)。 | ||
## Redis | ||
|
||
### `application.yml` Configure connection parameters | ||
> Support Redis Standalone, Cluster, and Sentinel modes | ||
> | ||
> Support all configurations under `spring.data.redis` | ||
|
||
```yaml:no-line-numbers | ||
spring: | ||
cloud: | ||
stream: | ||
default-binder: redis | ||
binders: | ||
redis: | ||
type: redis | ||
redis: | ||
binder: | ||
configuration: | ||
host: 127.0.0.1 | ||
port: 6379 | ||
password: 123456 | ||
database: 7 | ||
support-type: queue_channel | ||
# bindings: | ||
# send-in-0: | ||
# consumer: | ||
# destination-is-pattern: true | ||
bindings: | ||
out-0: | ||
destination: test-topic | ||
content-type: text/plain | ||
group: push-producer-group | ||
send-in-0: | ||
destination: test-topic | ||
content-type: text/plain | ||
group: test-send-group | ||
``` | ||
|
||
|
||
### Optional Clients | ||
|
||
The default is to use the `lettuce` client, if you need to switch to the jedis client, you can add a jedis dependency to do so, with the same configuration parameters as spring-boot-starter-data-redis. | ||
|
||
```yaml:no-line-numbers | ||
spring: | ||
cloud: | ||
stream: | ||
default-binder: redis | ||
binders: | ||
redis: | ||
type: redis | ||
redis: | ||
binder: | ||
configuration: | ||
host: 127.0.0.1 | ||
port: 6379 | ||
password: 123456 | ||
database: 7 | ||
client-type: jedis | ||
jedis: | ||
pool: | ||
enabled: true | ||
max-idle: 8 | ||
max-active: 8 | ||
``` | ||
|
Oops, something went wrong.