bootstrap.yml
1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
itcast:
local-ip: ${LOCAL_IP:${spring.cloud.client.ip-address}} # docker部署时,需要指定, 表示的运行该服务的宿主机IP
nacos:
ip: ${NACOS_IP:@pom.nacos.ip@}
port: ${NACOS_PORT:@pom.nacos.port@}
namespace: ${NACOS_ID:@pom.nacos.namespace@}
spring:
main:
allow-bean-definition-overriding: true
application:
name: @project.artifactId@
profiles:
active: @pom.profile.name@
cloud:
nacos:
config:
server-addr: ${itcast.nacos.ip}:${itcast.nacos.port}
file-extension: yml
namespace: ${itcast.nacos.namespace}
shared-dataids: common.yml,redis.yml
refreshable-dataids: common.yml
enabled: true
discovery:
server-addr: ${itcast.nacos.ip}:${itcast.nacos.port}
namespace: ${itcast.nacos.namespace}
metadata:
management.context-path: ${server.servlet.context-path:}${spring.mvc.servlet.path:}${management.endpoints.web.base-path:}
logging:
file:
path: /data/projects/logs
name: ${logging.file.path}/${spring.application.name}/root.log
# 用于/actuator/info
info:
name: '@project.name@'
description: '@project.description@'
version: '@project.version@'
spring-boot-version: '@spring.boot.version@'
spring-cloud-version: '@spring.cloud.version@'