Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
3b50d0b2
Commit
3b50d0b2
authored
Mar 15, 2022
by
李晓钟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置nacos,启动不报错。修复dubbo的ip指向问题
parent
85b8c064
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
122 additions
and
47 deletions
+122
-47
config/src/main/resources/config/application-dev.yml
+16
-10
config/src/main/resources/config/bootstrap.yml
+46
-0
core/pom.xml
+5
-0
docs/docsify/开发者中心.md
+23
-0
pom.xml
+32
-37
No files found.
config/src/main/resources/config/application-dev.yml
View file @
3b50d0b2
...
@@ -15,9 +15,9 @@ spring-boot-plus:
...
@@ -15,9 +15,9 @@ spring-boot-plus:
spring
:
spring
:
datasource
:
datasource
:
url
:
jdbc:mysql://1
27.0.0.1:3306/wecloud-im
?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
url
:
jdbc:mysql://1
92.168.1.89:3306/wecloud_im_feat_cluster
?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
username
:
root
username
:
root
password
:
123
456
password
:
123
#//测试外网
#//测试外网
# url: jdbc:mysql://18.136.207.16:3306/wecloud_im?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
# url: jdbc:mysql://18.136.207.16:3306/wecloud_im?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
...
@@ -27,26 +27,31 @@ spring:
...
@@ -27,26 +27,31 @@ spring:
# Redis配置
# Redis配置
redis
:
redis
:
database
:
0
database
:
0
host
:
1
27.0.0.1
host
:
1
92.168.1.89
password
:
password
:
port
:
6379
port
:
6379
cloud
:
cloud
:
nacos
:
nacos
:
discovery
:
discovery
:
server-addr
:
127.0.0.1:8848
server-addr
:
192.168.1.89:8848
userName
:
"
nacos"
password
:
"
nacos"
config
:
server-addr
:
192.168.1.89:8848
userName
:
"
nacos"
password
:
"
nacos"
file-extension
:
yaml
mynacos
:
server-addr
:
192.168.1.89:8848
dubbo
:
dubbo
:
protocol
:
protocol
:
port
:
20881
port
:
20881
name
:
dubbo
name
:
dubbo
registry
:
registry
:
address
:
nacos://127.0.0.1:8848?username=nacos&password=nacos
address
:
nacos://192.168.1.89:8848?username=nacos&password=nacos
provider
:
cluster
:
channelRouterCluster
consumer
:
check
:
false
# 打印SQL语句和结果集,本地开发环境可开启,线上注释掉
# 打印SQL语句和结果集,本地开发环境可开启,线上注释掉
mybatis-plus
:
mybatis-plus
:
...
@@ -60,6 +65,6 @@ load-blance:
...
@@ -60,6 +65,6 @@ load-blance:
# NameServer地址 用;作为地址的分隔符
# NameServer地址 用;作为地址的分隔符
rocketmq
:
rocketmq
:
namesrvAddr
:
1
27.0.0.1
:9876
namesrvAddr
:
1
92.168.1.89
:9876
# 生产者的组名
# 生产者的组名
producerId
:
im-server
producerId
:
im-server
\ No newline at end of file
config/src/main/resources/config/bootstrap.yml
0 → 100644
View file @
3b50d0b2
spring
:
profiles
:
active
:
@
profileActive@
---
spring
:
profiles
:
dev
cloud
:
nacos
:
discovery
:
server-addr
:
192.168.1.89:8848
userName
:
"
nacos"
password
:
"
nacos"
config
:
server-addr
:
192.168.1.89:8848
userName
:
"
nacos"
password
:
"
nacos"
file-extension
:
yaml
---
spring
:
profiles
:
test
cloud
:
nacos
:
discovery
:
server-addr
:
localhost:8848
userName
:
"
nacos"
password
:
"
nacos"
config
:
server-addr
:
localhost:8848
userName
:
"
nacos"
password
:
"
nacos"
file-extension
:
yaml
---
spring
:
profiles
:
prod
cloud
:
nacos
:
discovery
:
server-addr
:
localhost:8848
userName
:
"
nacos"
password
:
"
nacos"
config
:
server-addr
:
localhost:8848
userName
:
"
nacos"
password
:
"
nacos"
file-extension
:
yaml
\ No newline at end of file
core/pom.xml
View file @
3b50d0b2
...
@@ -140,6 +140,11 @@
...
@@ -140,6 +140,11 @@
<artifactId>
client
</artifactId>
<artifactId>
client
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
<version>
0.0.1-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
<scope>
provided
</scope>
</dependency>
</dependencies>
</dependencies>
<!-- <build>-->
<!-- <build>-->
...
...
docs/docsify/开发者中心.md
0 → 100644
View file @
3b50d0b2
#背景
#背景
>我们采用docsify作为开发者中心的文档管理
> > 具体参考 [docsify官网](https://docsify.js.org/#/)
#安装
###首先取得用户比较大的权限
```
bash
sudo
-s
```
###建议docsify-cli全局安装
```
bash
npm i docsify-cli
-g
```
#初始化
```
bash
docsify init ./docs
```
#启动
```
bash
docsify serve docs
```
\ No newline at end of file
pom.xml
View file @
3b50d0b2
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
<module>
generator
</module>
<module>
generator
</module>
<module>
core
</module>
<module>
core
</module>
<module>
client
</module>
<module>
client
</module>
<!-- <module>api-app</module>-->
<!-- <module>api-app</module>-->
<!-- <module>distribution</module>-->
<!-- <module>distribution</module>-->
<!-- <module>admin</module>-->
<!-- <module>admin</module>-->
<!-- <module>api-system</module>-->
<!-- <module>api-system</module>-->
...
@@ -302,11 +302,11 @@
...
@@ -302,11 +302,11 @@
<version>
0.0.1-SNAPSHOT
</version>
<version>
0.0.1-SNAPSHOT
</version>
</dependency>
</dependency>
<!-- <dependency>-->
<!-- <dependency>-->
<!-- <groupId>io.geekidea.springbootplus</groupId>-->
<!-- <groupId>io.geekidea.springbootplus</groupId>-->
<!-- <artifactId>api-app</artifactId>-->
<!-- <artifactId>api-app</artifactId>-->
<!-- <version>${project.version}</version>-->
<!-- <version>${project.version}</version>-->
<!-- </dependency>-->
<!-- </dependency>-->
<dependency>
<dependency>
<groupId>
io.geekidea.springbootplus
</groupId>
<groupId>
io.geekidea.springbootplus
</groupId>
...
@@ -343,60 +343,55 @@
...
@@ -343,60 +343,55 @@
<dependencies>
<dependencies>
<dependency>
<dependency>
<groupId>
org.apache.dubbo
</groupId>
<groupId>
org.apache.dubbo
</groupId>
<artifactId>
dubbo-spring-boot-starter
</artifactId>
<artifactId>
dubbo-spring-boot-starter
</artifactId>
<version>
${dubbo.version}
</version>
<version>
${dubbo.version}
</version>
<exclusions>
<!-- 排除自带的logback依赖 -->
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.alibaba.spring
</groupId>
<groupId>
org.apache.dubbo
</groupId>
<artifactId>
spring-context-support
</artifactId>
<artifactId>
dubbo
</artifactId>
<version>
1.0.11
</version>
<version>
${dubbo.version}
</version>
</dependency>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.apache.dubbo</groupId>-->
<!-- <artifactId>dubbo</artifactId>-->
<!-- <version>${dubbo.version}</version>-->
<!-- </dependency>-->
<dependency>
<dependency>
<groupId>
org.apache.dubbo
</groupId>
<groupId>
org.apache.dubbo
</groupId>
<artifactId>
dubbo-registry-nacos
</artifactId>
<artifactId>
dubbo-registry-nacos
</artifactId>
<version>
${dubbo.version}
</version>
<version>
${dubbo.version}
</version>
</dependency>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.alibaba.cloud</groupId>-->
<!-- <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>-->
<!-- <version>2.2.5.RELEASE</version>-->
<!-- <exclusions>-->
<!-- <exclusion>-->
<!-- <groupId>com.alibaba.spring</groupId>-->
<!-- <artifactId>spring-context-support</artifactId>-->
<!-- </exclusion>-->
<!-- </exclusions>-->
<!-- </dependency>-->
<dependency>
<dependency>
<groupId>
com.alibaba.cloud
</groupId>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-starter-alibaba-nacos-discovery
</artifactId>
<artifactId>
spring-cloud-starter-alibaba-nacos-discovery
</artifactId>
<version>
2.2.5.RELEASE
</version>
<version>
2.2.5.RELEASE
</version>
<exclusions>
<exclusions>
<!-- 排除自带的logback依赖 -->
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-starter-alibaba-nacos-config
</artifactId>
<version>
2.2.5.RELEASE
</version>
<exclusions>
<!-- 排除自带的logback依赖 -->
<exclusion>
<exclusion>
<groupId>
com.alibaba.spring
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-
context-support
</artifactId>
<artifactId>
spring-
boot-starter-logging
</artifactId>
</exclusion>
</exclusion>
</exclusions>
</exclusions>
</dependency>
</dependency>
<!-- rabbitmq -->
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter-amqp</artifactId>-->
<!-- </dependency>-->
<dependency>
<dependency>
<groupId>
net.logstash.logback
</groupId>
<groupId>
net.logstash.logback
</groupId>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment