Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-backend
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
framework
cloud-backend
Commits
98809e40
Commit
98809e40
authored
May 27, 2022
by
袁伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.0.0
parent
c4808345
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
78 additions
and
46 deletions
+78
-46
api-server/src/main/resources/application.yml
+4
-4
api-server/src/main/resources/bootstrap.yml
+4
-4
config-server/src/main/resources/application.yml
+4
-1
config-server/src/main/resources/properties/config-dev.yml
+8
-4
config-server/src/main/resources/properties/config-product.yml
+9
-4
config-server/src/main/resources/properties/config-test.yml
+9
-4
eureka-server/src/main/resources/application.yml
+10
-1
file-server/src/main/resources/bootstrap.yml
+4
-4
gateway-server/src/main/resources/bootstrap.yml
+4
-4
pom.xml
+6
-0
sys-server/src/main/resources/application.yml
+4
-4
sys-server/src/main/resources/bootstrap.yml
+4
-4
user-server/src/main/resources/application.yml
+4
-4
user-server/src/main/resources/bootstrap.yml
+4
-4
No files found.
api-server/src/main/resources/application.yml
View file @
98809e40
...
...
@@ -25,10 +25,10 @@ spring:
datasource
:
druid
:
db-type
:
com.alibaba.druid.pool.DruidDataSource
driver
ClassName
:
${jdbc
.driver-class-name}
username
:
${
jdbc
.username}
password
:
${
jdbc
.password}
url
:
${
jdbc.url
}
driver
-class-name
:
${db.cloud
.driver-class-name}
username
:
${
db.cloud
.username}
password
:
${
db.cloud
.password}
url
:
${
db.cloud.url.cloud
}
# 初始连接数
initial-size
:
5
# 最小连接数
...
...
api-server/src/main/resources/bootstrap.yml
View file @
98809e40
...
...
@@ -12,12 +12,12 @@ spring:
eureka
:
instance
:
prefer-ip-address
:
true
lease-renewal-interval-in-seconds
:
2
#每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
lease-expiration-duration-in-seconds
:
6
#告诉服务端,如果我2s之内没有给你发心跳,就代表我"死"了,将我踢出掉。
instance-id
:
${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
client
:
service-url
:
defaultZone
:
http://admin:123456@127.0.0.1:9900/eureka/
# instance:
# lease-renewal-interval-in-seconds: 2 #每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
# lease-expiration-duration-in-seconds: 6 #告诉服务端,如果我2s之内没有给你发心跳,就代表我"死"了,将我踢出掉。
defaultZone
:
@
eureka.server.url@
feign
:
client
:
...
...
config-server/src/main/resources/application.yml
View file @
98809e40
...
...
@@ -18,9 +18,12 @@ spring:
eureka
:
instance
:
prefer-ip-address
:
true
lease-renewal-interval-in-seconds
:
2
#每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
lease-expiration-duration-in-seconds
:
6
#告诉服务端,如果我2s之内没有给你发心跳,就代表我"死"了,将我踢出掉。
instance-id
:
${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
client
:
service-url
:
defaultZone
:
http://admin:123456@127.0.0.1:9900/eureka/
defaultZone
:
@
eureka.server.url@
management
:
endpoints
:
...
...
config-server/src/main/resources/properties/config-dev.yml
View file @
98809e40
...
...
@@ -18,12 +18,16 @@ gateway.name: GATEWAY-SERVER
redis.url
:
127.0.0.1
redis.port
:
6379
redis.password
:
#数据库源配置
jdbc.driver-class-name
:
com.mysql.cj.jdbc.Driver
jdbc.username
:
root
jdbc.password
:
Dk2019!23456
jdbc.url
:
jdbc:mysql://47.107.148.253:3306/cloud?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
db
:
cloud
:
username
:
root
password
:
Dk2019!23456
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
cloud
:
jdbc:mysql://47.107.148.253:3306/cloud?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
#jwt
jwt
:
...
...
config-server/src/main/resources/properties/config-product.yml
View file @
98809e40
...
...
@@ -18,12 +18,16 @@ gateway.name: GATEWAY-SERVER
redis.url
:
127.0.0.1
redis.port
:
6379
redis.password
:
#数据库源配置
jdbc.driver-class-name
:
com.mysql.cj.jdbc.Driver
jdbc.username
:
root
jdbc.password
:
Dk2019!23456
jdbc.url
:
jdbc:mysql://47.107.148.253:3306/cloud?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
db
:
cloud
:
username
:
root
password
:
Dk2019!23456
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
cloud
:
jdbc:mysql://47.107.148.253:3306/cloud?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
#jwt
jwt
:
...
...
@@ -56,3 +60,4 @@ task:
queue-capacity
:
20
# 活跃时间
keep-alive-seconds
:
30
config-server/src/main/resources/properties/config-test.yml
View file @
98809e40
...
...
@@ -18,12 +18,16 @@ gateway.name: GATEWAY-SERVER
redis.url
:
127.0.0.1
redis.port
:
6379
redis.password
:
#数据库源配置
jdbc.driver-class-name
:
com.mysql.cj.jdbc.Driver
jdbc.username
:
root
jdbc.password
:
Dk2019!23456
jdbc.url
:
jdbc:mysql://47.107.148.253:3306/cloud?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
db
:
cloud
:
username
:
root
password
:
Dk2019!23456
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
cloud
:
jdbc:mysql://47.107.148.253:3306/cloud?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
#jwt
jwt
:
...
...
@@ -56,3 +60,4 @@ task:
queue-capacity
:
20
# 活跃时间
keep-alive-seconds
:
30
eureka-server/src/main/resources/application.yml
View file @
98809e40
server
:
port
:
99
00
port
:
88
00
spring
:
application
:
name
:
EUREKA-SERVER
...
...
@@ -8,7 +8,16 @@ spring:
name
:
admin
password
:
123456
eureka
:
server
:
# 关闭自我保护机制(程序停掉了还注册的问题)
enable-self-preservation
:
false
# 主动失效检测间隔,配置成5秒
eviction-interval-timer-in-ms
:
2000
# 禁用readOnlyCacheMap
use-read-only-response-cache
:
false
client
:
# 客户端拉取readOnly缓存的时间间隔,默认是30s
registry-fetch-interval-seconds
:
10
# 表示是否将自己注册到Eureka Server,默认为true。
register-with-eureka
:
false
# 表示是否从Eureka Server获取注册信息,默认为true。
...
...
file-server/src/main/resources/bootstrap.yml
View file @
98809e40
...
...
@@ -12,9 +12,9 @@ spring:
eureka
:
instance
:
prefer-ip-address
:
true
lease-renewal-interval-in-seconds
:
2
#每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
lease-expiration-duration-in-seconds
:
6
#告诉服务端,如果我2s之内没有给你发心跳,就代表我"死"了,将我踢出掉。
instance-id
:
${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
client
:
service-url
:
defaultZone
:
http://admin:123456@127.0.0.1:9900/eureka/
# instance:
# lease-renewal-interval-in-seconds: 2 #每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
# lease-expiration-duration-in-seconds: 6 #告诉服务端,如果我2s之内没有给你发心跳,就代表我"死"了,将我踢出掉。
defaultZone
:
@
eureka.server.url@
gateway-server/src/main/resources/bootstrap.yml
View file @
98809e40
...
...
@@ -12,9 +12,9 @@ spring:
eureka
:
instance
:
prefer-ip-address
:
true
lease-renewal-interval-in-seconds
:
2
#每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
lease-expiration-duration-in-seconds
:
6
#告诉服务端,如果我2s之内没有给你发心跳,就代表我"死"了,将我踢出掉。
instance-id
:
${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
client
:
service-url
:
defaultZone
:
http://admin:123456@127.0.0.1:9900/eureka/
# instance:
# lease-renewal-interval-in-seconds: 2 #每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
# lease-expiration-duration-in-seconds: 6 #告诉服务端,如果我2s之内没有给你发心跳,就代表我"死"了,将我踢出掉。
defaultZone
:
@
eureka.server.url@
pom.xml
View file @
98809e40
...
...
@@ -49,6 +49,8 @@
<id>
dev
</id>
<properties>
<profiles.active>
dev
</profiles.active>
<logging.level>
debug
</logging.level>
<eureka.server.url>
http://admin:123456@127.0.0.1:8800/eureka
</eureka.server.url>
</properties>
<activation>
<activeByDefault>
true
</activeByDefault>
...
...
@@ -59,6 +61,8 @@
<id>
test
</id>
<properties>
<profiles.active>
test
</profiles.active>
<logging.level>
debug
</logging.level>
<eureka.server.url>
http://admin:123456@127.0.0.1:8800/eureka
</eureka.server.url>
</properties>
</profile>
<profile>
...
...
@@ -66,6 +70,8 @@
<id>
product
</id>
<properties>
<profiles.active>
product
</profiles.active>
<logging.level>
info
</logging.level>
<eureka.server.url>
http://admin:123456@127.0.0.1:8800/eureka
</eureka.server.url>
</properties>
</profile>
</profiles>
...
...
sys-server/src/main/resources/application.yml
View file @
98809e40
...
...
@@ -17,10 +17,10 @@ spring:
datasource
:
druid
:
db-type
:
com.alibaba.druid.pool.DruidDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
${
jdbc
.username}
password
:
${
jdbc
.password}
url
:
${
jdbc.url
}
driver-class-name
:
${db.cloud.driver-class-name}
username
:
${
db.cloud
.username}
password
:
${
db.cloud
.password}
url
:
${
db.cloud.url.cloud
}
# 初始连接数
initial-size
:
5
# 最小连接数
...
...
sys-server/src/main/resources/bootstrap.yml
View file @
98809e40
...
...
@@ -12,9 +12,9 @@ spring:
eureka
:
instance
:
prefer-ip-address
:
true
lease-renewal-interval-in-seconds
:
2
#每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
lease-expiration-duration-in-seconds
:
6
#告诉服务端,如果我2s之内没有给你发心跳,就代表我"死"了,将我踢出掉。
instance-id
:
${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
client
:
service-url
:
defaultZone
:
http://admin:123456@127.0.0.1:9900/eureka/
# instance:
# lease-renewal-interval-in-seconds: 2 #每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
# lease-expiration-duration-in-seconds: 6 #告诉服务端,如果我2s之内没有给你发心跳,就代表我"死"了,将我踢出掉。
defaultZone
:
@
eureka.server.url@
user-server/src/main/resources/application.yml
View file @
98809e40
...
...
@@ -25,10 +25,10 @@ spring:
datasource
:
druid
:
db-type
:
com.alibaba.druid.pool.DruidDataSource
driver
ClassName
:
${jdbc
.driver-class-name}
username
:
${
jdbc
.username}
password
:
${
jdbc
.password}
url
:
${
jdbc.url
}
driver
-class-name
:
${db.cloud
.driver-class-name}
username
:
${
db.cloud
.username}
password
:
${
db.cloud
.password}
url
:
${
db.cloud.url.cloud
}
# 初始连接数
initial-size
:
5
# 最小连接数
...
...
user-server/src/main/resources/bootstrap.yml
View file @
98809e40
...
...
@@ -12,9 +12,9 @@ spring:
eureka
:
instance
:
prefer-ip-address
:
true
lease-renewal-interval-in-seconds
:
2
#每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
lease-expiration-duration-in-seconds
:
6
#告诉服务端,如果我2s之内没有给你发心跳,就代表我"死"了,将我踢出掉。
instance-id
:
${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
client
:
service-url
:
defaultZone
:
http://admin:123456@127.0.0.1:9900/eureka/
# instance:
# lease-renewal-interval-in-seconds: 2 #每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
# lease-expiration-duration-in-seconds: 6 #告诉服务端,如果我2s之内没有给你发心跳,就代表我"死"了,将我踢出掉。
defaultZone
:
@
eureka.server.url@
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