Skip to content

Commit

Permalink
更新配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
pnoker committed Apr 16, 2022
1 parent 5b5f0fa commit 9703c6a
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spring:
- mysql
- redis
- feign
- ${environment:dev}
- ${NODE_ENV:dev}
main:
allow-bean-definition-overriding: true
mvc:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
# Development environment, customizable configuration
eureka:
instance:
ip-address: ${SERVICE_HOST:192.168.0.103}
# Custom node registration IP
ip-address: ${SERVICE_HOST:192.168.0.103}

spring:
datasource:
# Customize MySQL configuration
url: jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/dc3?allowPublicKeyRetrieval=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
rabbitmq:
# Customize Rabbitmq configuration
host: ${RABBITMQ_HOST:localhost}
port: ${RABBITMQ_PORT:5672}
redis:
# Customize Redis configuration
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
data:
mongodb:
# Customize Mongo configuration
host: ${MONGO_HOST:localhost}
port: ${MONGO_PORT:27017}
cache:
redis:
# Customize Cache configuration
time-to-live: ${CACHE_REDIS_TIME_TO_LIVE:5M}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spring:
- mongo
- redis
- feign
- ${environment:dev}
- ${NODE_ENV:dev}
main:
allow-bean-definition-overriding: true
mvc:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
# Development environment, customizable configuration
eureka:
instance:
ip-address: ${SERVICE_HOST:192.168.0.103}
# Custom node registration IP
ip-address: ${SERVICE_HOST:192.168.0.103}

spring:
datasource:
# Customize MySQL configuration
url: jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/dc3?allowPublicKeyRetrieval=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
rabbitmq:
# Customize Rabbitmq configuration
host: ${RABBITMQ_HOST:localhost}
port: ${RABBITMQ_PORT:5672}
redis:
# Customize Redis configuration
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
data:
mongodb:
# Customize Mongo configuration
host: ${MONGO_HOST:localhost}
port: ${MONGO_PORT:27017}
cache:
redis:
# Customize Cache configuration
time-to-live: ${CACHE_REDIS_TIME_TO_LIVE:5M}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spring:
- mongo
- redis
- feign
- ${environment:dev}
- ${NODE_ENV:dev}
main:
allow-bean-definition-overriding: true
mvc:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spring:
- server
- register
- monitor
- ${environment:dev}
- ${NODE_ENV:dev}
boot:
admin:
context-path: ${MONITOR_CONTEXT_PATH:/}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spring:
- server
- register
- monitor
- ${environment:dev}
- ${NODE_ENV:dev}

logging:
level:
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
<profile>
<id>dev</id>
<properties>
<environment>dev</environment>
<NODE_ENV>dev</NODE_ENV>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
Expand All @@ -288,13 +288,13 @@
<profile>
<id>test</id>
<properties>
<environment>test</environment>
<NODE_ENV>test</NODE_ENV>
</properties>
</profile>
<profile>
<id>prod</id>
<properties>
<environment>prod</environment>
<NODE_ENV>prod</NODE_ENV>
</properties>
</profile>
</profiles>
Expand Down

0 comments on commit 9703c6a

Please sign in to comment.